Skip to content

Commit 0831881

Browse files
committed
Leverage str_starts_with(), str_ends_with() and str_contains()
1 parent 5b3e3d6 commit 0831881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpKernelBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function getScript(object $request)
8787

8888
$requires = '';
8989
foreach (get_declared_classes() as $class) {
90-
if (0 === strpos($class, 'ComposerAutoloaderInit')) {
90+
if (str_starts_with($class, 'ComposerAutoloaderInit')) {
9191
$r = new \ReflectionClass($class);
9292
$file = \dirname($r->getFileName(), 2).'/autoload.php';
9393
if (file_exists($file)) {

0 commit comments

Comments
 (0)