Skip to content

Commit 6bb8403

Browse files
Merge branch '5.3' into 5.4
* 5.3: Leverage str_contains/str_starts_with Leverage str_ends_with
2 parents bb92d0d + 06faa23 commit 6bb8403

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Debug/WrappedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct($listener, ?string $name, Stopwatch $stopwatch, Even
4747
$this->pretty = $this->name.'::'.$listener[1];
4848
} elseif ($listener instanceof \Closure) {
4949
$r = new \ReflectionFunction($listener);
50-
if (false !== strpos($r->name, '{closure}')) {
50+
if (str_contains($r->name, '{closure}')) {
5151
$this->pretty = $this->name = 'closure';
5252
} elseif ($class = $r->getClosureScopeClass()) {
5353
$this->name = $class->name;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=7.2.5",
2020
"symfony/deprecation-contracts": "^2.1",
2121
"symfony/event-dispatcher-contracts": "^2",
22-
"symfony/polyfill-php80": "^1.15"
22+
"symfony/polyfill-php80": "^1.16"
2323
},
2424
"require-dev": {
2525
"symfony/dependency-injection": "^4.4|^5.0|^6.0",

0 commit comments

Comments
 (0)