Skip to content

removed attached() & detached() methods (BC break) #60

removed attached() & detached() methods (BC break)

removed attached() & detached() methods (BC break) #60

Triggered via push June 5, 2025 23:26
Status Success
Total duration 26s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: src/ComponentModel/Component.php#L235
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}> given.
PHPStan: src/ComponentModel/Component.php#L213
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#L197
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#L187
Method Nette\ComponentModel\Component::validateParent() has Nette\InvalidStateException in PHPDoc @throws tag but it's not thrown.
PHPStan: src/ComponentModel/Component.php#L123
Method Nette\ComponentModel\Component::getName() never returns null so it can be removed from the return type.
PHPStan: src/ComponentModel/Component.php#L39
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L39
Method Nette\ComponentModel\Component::lookup() return type with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L31
Property Nette\ComponentModel\Component::$monitors with generic interface Nette\ComponentModel\IComponent does not specify its types: T
PHPStan: src/ComponentModel/Component.php#L27
Property Nette\ComponentModel\Component::$parent with generic interface Nette\ComponentModel\IContainer does not specify its types: T
PHPStan: src/ComponentModel/ArrayAccess.php#L19
Trait Nette\ComponentModel\ArrayAccess is used zero times and is not analysed.