Skip to content

Commit b555276

Browse files
sasulexificurk
authored andcommitted
Replacement of deprecated $type->isSimple() with $type->isSimple() - compatibility fix to fit nette/utils 4.1
1 parent f8fad06 commit b555276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kdyby/Autowired/AutowireProperties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function resolvePropertyType(\ReflectionProperty $prop): string
144144
if ($type === NULL) {
145145
throw new InvalidStateException(sprintf('Missing property typehint on %s.', Reflection::toString($prop)), $prop);
146146
}
147-
if (! $type->isSingle()) {
147+
if (! $type->isSimple()) {
148148
throw new InvalidStateException('The ' . Reflection::toString($prop) . ' is not expected to have a union or intersection type.', $prop);
149149
}
150150

0 commit comments

Comments
 (0)