-
Recently, I have faced the problem that it is impossible to control what kind of exceptions may be thrown by interface implementations. It would be great to restrict to throw an exception that not dec…
-
This issue is probably more of a discussion for collaborators but of course anyone is welcome to chime in with opinions. Once Cord (the company) shuts off their infrastructure then obviously the docum…
-
With constructor property promotion in PHP8 (especially in conjunction with attributes) new styling issues arise which make it harder to write as readable code as before. A real-world example explains…
-
Related https://github.com/phalcon/ide-stubs/issues/103
The `@property` reference is not correct (for Di)
niden updated
2 months ago
-
This example works in PHPStan and even PhpStorm recognizes the correct type (with its limited template implementation), do I overlook something?
Tested version 4.25 + 4.28
https://psalm.dev/r/d5…
-
I want to set the default to 1:
```php
$this->initVar('active', \XOBJ_DTYPE_INT, 1, true);
```
But XOOPS Kernel Object requires null:
> phpStan: Parameter #3 $value of method XoopsObject::ini…
-
Stage has the following methods for adding children:
- `appendLayer`
- `prependLayer`
- `insertLayerAtIndex`
RenderableGroup has:
- `addChild`
- `insertChildAtIndex` - **just added**
For API consist…
-
https://psalm.dev/r/348f362bc8
PHPStan considers this snippet perfectly valid:
https://phpstan.org/r/b6a8fe7d-df8a-459b-b1a1-46be219287cc
-
Related to #4
This is useful when there's an entire class where the methods should be treated as free of side effects (e.g. it'd be an error not to use the return values)
- This should apply to…
-
## Short story:
After a https://github.com/minkphp/Mink/pull/856 change (included in Mink 1.11.0 release) the `switchToIFrame` method signature was massively (`DriverInterface`, `CoreDriver`, `Sele…