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
thrownew \LogicException(sprintf('Unable to use the "%s" class as the "phpdocumentor/reflection-docblock" package is not installed. Try running composer require "phpdocumentor/reflection-docblock".', __CLASS__));
63
+
thrownew \LogicException(\sprintf('Unable to use the "%s" class as the "phpdocumentor/reflection-docblock" package is not installed. Try running composer require "phpdocumentor/reflection-docblock".', __CLASS__));
thrownew \LogicException(sprintf('Unable to use the "%s" class as the "phpdocumentor/type-resolver" package is not installed. Try running composer require "phpdocumentor/type-resolver".', __CLASS__));
60
+
thrownew \LogicException(\sprintf('Unable to use the "%s" class as the "phpdocumentor/type-resolver" package is not installed. Try running composer require "phpdocumentor/type-resolver".', __CLASS__));
61
61
}
62
62
63
63
if (!class_exists(PhpDocParser::class)) {
64
-
thrownew \LogicException(sprintf('Unable to use the "%s" class as the "phpstan/phpdoc-parser" package is not installed. Try running composer require "phpstan/phpdoc-parser".', __CLASS__));
64
+
thrownew \LogicException(\sprintf('Unable to use the "%s" class as the "phpstan/phpdoc-parser" package is not installed. Try running composer require "phpstan/phpdoc-parser".', __CLASS__));
if (\PHP_VERSION_ID >= 80400 &&$reflectionProperty->isVirtual() && !$reflectionProperty->hasHook(\PropertyHookType::Set)) {
592
+
if (\PHP_VERSION_ID >= 80400 &&$reflectionProperty->isVirtual() && !$reflectionProperty->hasHook(\PropertyHookType::Set)) {
593
593
returnfalse;
594
594
}
595
595
}
@@ -721,9 +721,9 @@ private function findAdderAndRemover(\ReflectionClass $reflClass, array $singula
721
721
}
722
722
723
723
if ($addMethodFound && !$removeMethodFound) {
724
-
$errors[] = [sprintf('The add method "%s" in class "%s" was found, but the corresponding remove method "%s" was not found', $addMethod, $reflClass->getName(), $removeMethod)];
724
+
$errors[] = [\sprintf('The add method "%s" in class "%s" was found, but the corresponding remove method "%s" was not found', $addMethod, $reflClass->getName(), $removeMethod)];
$errors[] = [sprintf('The remove method "%s" in class "%s" was found, but the corresponding add method "%s" was not found', $removeMethod, $reflClass->getName(), $addMethod)];
726
+
$errors[] = [\sprintf('The remove method "%s" in class "%s" was found, but the corresponding add method "%s" was not found', $removeMethod, $reflClass->getName(), $addMethod)];
727
727
}
728
728
}
729
729
@@ -741,9 +741,9 @@ private function isMethodAccessible(\ReflectionClass $class, string $methodName,
741
741
$method = $class->getMethod($methodName);
742
742
743
743
if (\ReflectionMethod::IS_PUBLIC === $this->methodReflectionFlags && !$method->isPublic()) {
744
-
$errors[] = sprintf('The method "%s" in class "%s" was found but does not have public access.', $methodName, $class->getName());
744
+
$errors[] = \sprintf('The method "%s" in class "%s" was found but does not have public access.', $methodName, $class->getName());
$errors[] = sprintf('The method "%s" in class "%s" requires %d arguments, but should accept only %d.', $methodName, $class->getName(), $method->getNumberOfRequiredParameters(), $parameters);
746
+
$errors[] = \sprintf('The method "%s" in class "%s" requires %d arguments, but should accept only %d.', $methodName, $class->getName(), $method->getNumberOfRequiredParameters(), $parameters);
747
747
} else {
748
748
return [true, $errors];
749
749
}
@@ -843,7 +843,7 @@ private function getWriteVisiblityForProperty(\ReflectionProperty $reflectionPro
if (!\in_array($builtinType, self::$builtinTypes)) {
82
-
thrownew \InvalidArgumentException(sprintf('"%s" is not a valid PHP type.', $builtinType));
82
+
thrownew \InvalidArgumentException(\sprintf('"%s" is not a valid PHP type.', $builtinType));
83
83
}
84
84
85
85
$this->builtinType = $builtinType;
@@ -99,7 +99,7 @@ private function validateCollectionArgument(array|self|null $collectionArgument,
99
99
if (\is_array($collectionArgument)) {
100
100
foreach ($collectionArgumentas$type) {
101
101
if (!$typeinstanceof self) {
102
-
thrownew \TypeError(sprintf('"%s()": Argument #%d (%s) must be of type "%s[]", "%s" or "null", array value "%s" given.', __METHOD__, $argumentIndex, $argumentName, self::class, self::class, get_debug_type($collectionArgument)));
102
+
thrownew \TypeError(\sprintf('"%s()": Argument #%d (%s) must be of type "%s[]", "%s" or "null", array value "%s" given.', __METHOD__, $argumentIndex, $argumentName, self::class, self::class, get_debug_type($collectionArgument)));
0 commit comments