improve types #21
Annotations
10 errors
Run PHPStan:
src/Drivers/Color.php#L99
Method Spatie\Image\Drivers\Color::rgbaFromString() should return array<int> but returns array<int, float|int>.
|
Run PHPStan:
src/Drivers/Gd/GdColor.php#L127
Access to an undefined property Spatie\Image\Drivers\Color::$red.
|
Run PHPStan:
src/Drivers/Gd/GdColor.php#L128
Access to an undefined property Spatie\Image\Drivers\Color::$green.
|
Run PHPStan:
src/Drivers/Gd/GdColor.php#L129
Access to an undefined property Spatie\Image\Drivers\Color::$blue.
|
Run PHPStan:
src/Drivers/Gd/GdColor.php#L130
Access to an undefined property Spatie\Image\Drivers\Color::$alpha.
|
Run PHPStan:
src/Drivers/Gd/GdDriver.php#L1
Ignored error pattern #^Parameter \#2 \$length of function fread expects int\<0, max\>, int\<0, max\>\|false given\.$# in path /home/runner/work/image/image/src/Drivers/Gd/GdDriver.php was not matched in reported errors.
|
Run PHPStan:
src/Drivers/Gd/GdDriver.php#L49
Method Spatie\Image\Drivers\Gd\GdDriver::new() should return static(Spatie\Image\Drivers\Gd\GdDriver) but returns Spatie\Image\Drivers\Gd\GdDriver.
|
Run PHPStan:
src/Drivers/Gd/GdDriver.php#L76
Ignored error pattern #^Parameter \#1 \$data of function imagecreatefromstring expects string, string\|false given\.$# in path /home/runner/work/image/image/src/Drivers/Gd/GdDriver.php is expected to occur 1 time, but occurred 2 times.
|
Run PHPStan:
src/Drivers/Gd/GdDriver.php#L247
Ignored error pattern #^Property Spatie\\Image\\Drivers\\Gd\\GdDriver\:\:\$image \(GdImage\) does not accept GdImage\|false\.$# in path /home/runner/work/image/image/src/Drivers/Gd/GdDriver.php is expected to occur 2 times, but occurred 3 times.
|
Run PHPStan:
src/Drivers/Gd/GdDriver.php#L545
Access to an undefined property Spatie\Image\Drivers\ImageDriver::$image.
|
The logs for this run have expired and are no longer available.
Loading