You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$this->isAbsolutePath($endPath) || !$this->isAbsolutePath($startPath)) {
449
-
@trigger_error(sprintf('Support for passing relative paths to %s() is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
449
+
@trigger_error(sprintf('Support for passing relative paths to %s() is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), \E_USER_DEPRECATED);
450
450
}
451
451
452
452
// Normalize separators on Windows
@@ -604,7 +604,7 @@ public function isAbsolutePath($file)
604
604
&& ':' === $file[1]
605
605
&& strspn($file, '/\\', 2, 1)
606
606
)
607
-
|| null !== parse_url($file, PHP_URL_SCHEME)
607
+
|| null !== parse_url($file, \PHP_URL_SCHEME)
608
608
;
609
609
}
610
610
@@ -713,7 +713,7 @@ public function appendToFile($filename, $content)
713
713
thrownewIOException(sprintf('Unable to write to the "%s" directory.', $dir), 0, null, $dir);
714
714
}
715
715
716
-
if (false === @file_put_contents($filename, $content, FILE_APPEND)) {
716
+
if (false === @file_put_contents($filename, $content, \FILE_APPEND)) {
717
717
thrownewIOException(sprintf('Failed to write file "%s".', $filename), 0, null, $filename);
Copy file name to clipboardExpand all lines: LockHandler.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
useSymfony\Component\Lock\Store\FlockStore;
16
16
useSymfony\Component\Lock\Store\SemaphoreStore;
17
17
18
-
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
18
+
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), \E_USER_DEPRECATED);
19
19
20
20
/**
21
21
* LockHandler class provides a simple abstraction to lock anything by means of
@@ -97,7 +97,7 @@ public function lock($blocking = false)
97
97
98
98
// On Windows, even if PHP doc says the contrary, LOCK_NB works, see
99
99
// https://bugs.php.net/54129
100
-
if (!flock($this->handle, LOCK_EX | ($blocking ? 0 : LOCK_NB))) {
100
+
if (!flock($this->handle, \LOCK_EX | ($blocking ? 0 : \LOCK_NB))) {
101
101
fclose($this->handle);
102
102
$this->handle = null;
103
103
@@ -113,7 +113,7 @@ public function lock($blocking = false)
0 commit comments