Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit d7f8eb0

Browse files
gharlanfabpot
authored andcommitted
PHP 8.1: avoid deprecation message
1 parent cd6536c commit d7f8eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Compiler/EnsureNoHotPathPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class EnsureNoHotPathPass extends AbstractRecursivePass
2020
{
2121
protected function processValue($value, $isRoot = false)
2222
{
23-
if ($value instanceof Definition && 0 === strpos($value->getClass(), 'Swift_')) {
23+
if ($value instanceof Definition && null !== ($class = $value->getClass()) && 0 === strpos($class, 'Swift_')) {
2424
$value->clearTag('container.hot_path');
2525
}
2626

0 commit comments

Comments
 (0)