Choraimy Kroonstuiver
Choraimy Kroonstuiver
The `Squiz.Commenting.FunctionComment.InvalidNoReturn` causes false positives when it encounters the `never` return type. Tested this locally with: ```xml ``` ```php /** * @return never */ private function foo() { throw new...
This PR aims to create an easy way to mark singleton routes as 'destroyable'. A destroyable singleton may be deleted, but it may not be created (by default). This is...
https://github.com/laravel/passport/pull/1682
This PR adds a new extension type to PHPStan. This new extension type allows developers to tell PHPStan when a private method is used. My personal use case: I make...
The `PayloadSerializerSupportingObjectMapperAndSerializablePayload` only looks at the root type to determine the strategy it should use. Because public methods are serialized by default by the reflection strategy `toPayload` is getting serialized,...
### What does this fix? The `AggregateRootWithAggregates` breaks type inference for the aggregate root's ID. When using this trait PHPStan will always infer the type as `EventSauce\EventSourcing\AggregateRootId` For example: ```php...
The `PayloadSerializerSupportingObjectMapperAndSerializablePayload` only looks at the root type to determine the strategy it should use. Because public methods are serialized by default by the reflection strategy `toPayload` is getting serialized,...
This fixes a very minor pet peeve I have with these two classes; - The caster repository's casters cannot be passed to its constructor - The serializer repository's serializers parameter...
### Bug report PHPStan seems to not take conditional return types into account when using functions or methods as first class callables. My example features a function, but this problem...
The following code is valid, but not allowed by template types currently. This PR fixes that. ```php $some = new Some(5); $result = $some->foldLeft(1, function($a, $b) { return (string) ($a...