Choraimy Kroonstuiver

Results 14 issues of Choraimy Kroonstuiver

This change adds a minor improvement to the return type of `Option::select()` for static analysis. ```diff /** @var \PhpOption\Option $option */ -PHPStan\dumpType($option->select(2)); // PhpOption\Option +PHPStan\dumpType($option->select(2)); // PhpOption\Option ```

## What's wrong When hydrating a payload back to an object, the hydrator never checks if a default caster exists for the outer most object. Typically this isn't a problem,...

Something I noticed while debugging https://github.com/laravel/framework/issues/53501 is that Laravel's container currently always instantiates an extended/rebound class to pass to rebinding callbacks, even when no such callbacks are set. This PR...

Currently the following will trigger a PHPStan error: ```php class Example { private ?string $originalValue = null; /** * @param \PhpOption\Option $value */ public function updateIfChanged(Option $value): void { $value...