Skip to content

Container::addComponent() added typehint #68

Container::addComponent() added typehint

Container::addComponent() added typehint #68

Triggered via push November 29, 2025 12:17
Status Success
Total duration 19s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: 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}>}>.
PHPStan: 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}>}>.
PHPStan: 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.
PHPStan: 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
PHPStan: src/ComponentModel/Component.php#L137
Method Nette\ComponentModel\Component::getParent() should return (T of Nette\ComponentModel\IContainer)|null but returns Nette\ComponentModel\IContainer|null.
PHPStan: src/ComponentModel/Component.php#L40
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L40
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L32
Property Nette\ComponentModel\Component::$monitors with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L28
Property Nette\ComponentModel\Component::$parent with generic interface Nette\ComponentModel\IContainer does not specify its types: T
PHPStan: src/ComponentModel/ArrayAccess.php#L20
Trait Nette\ComponentModel\ArrayAccess is used zero times and is not analysed.