From 460edcd18e76604cabcd5c63126028a6745e78cb Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 24 Apr 2023 10:51:52 +1200 Subject: [PATCH] FIX Don't use PHP 8 syntax --- src/Transformer/PrivateStaticTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transformer/PrivateStaticTransformer.php b/src/Transformer/PrivateStaticTransformer.php index 00aaeb5..1568b1e 100644 --- a/src/Transformer/PrivateStaticTransformer.php +++ b/src/Transformer/PrivateStaticTransformer.php @@ -91,7 +91,7 @@ protected function getClassConfig($class) // Detect deprecated config $docComment = $prop->getDocComment(); - if (str_contains($docComment, '@deprecated')) { + if (strpos($docComment, '@deprecated') !== false) { $propName = $prop->getName(); $deprecated[$propName] = $this->getDeprecatedData($docComment, $class, $propName); }