used generics in phpDoc [WIP] #69
Annotations
10 errors
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L234
Property Nette\ComponentModel\Component<T of Nette\ComponentModel\IContainer>::$monitors (array<string, array{Nette\ComponentModel\IComponent|null, int|null, string|null, array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}>) does not accept array<string, array{3: non-empty-array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}|array{Nette\ComponentModel\IComponent|null, int|null, string|null, array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}>.
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L228
Property Nette\ComponentModel\Component<T of Nette\ComponentModel\IContainer>::$monitors (array<string, array{Nette\ComponentModel\IComponent|null, int|null, string|null, array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}>) does not accept array<string, array{3: non-empty-array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}|array{Nette\ComponentModel\IComponent|null, int|null, string|null, array<int, array{(callable(): mixed)|null, (callable(): mixed)|null}>}>.
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L215
Parameter &$listeners by-ref type of method Nette\ComponentModel\Component::refreshMonitors() expects array<int, array{callable(): mixed, Nette\ComponentModel\IComponent}>, non-empty-array<int, array{(callable(): mixed)|null, Nette\ComponentModel\IComponent|null}> given.
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L199
Method Nette\ComponentModel\Component::refreshMonitors() has parameter $listeners with generic interface Nette\ComponentModel\IComponent but does not specify its types: T
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L137
Method Nette\ComponentModel\Component::getParent() should return (T of Nette\ComponentModel\IContainer)|null but returns Nette\ComponentModel\IContainer|null.
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L40
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L40
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L32
Property Nette\ComponentModel\Component::$monitors with generic interface Nette\ComponentModel\IComponent does not specify its types: T
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/Component.php#L28
Property Nette\ComponentModel\Component::$parent with generic interface Nette\ComponentModel\IContainer does not specify its types: T
|
|
Run composer phpstan -- --no-progress:
src/ComponentModel/ArrayAccess.php#L20
Trait Nette\ComponentModel\ArrayAccess is used zero times and is not analysed.
|
Loading