[15.0] Replace types (#2945) #129
Annotations
10 errors and 3 warnings
FalsableReturnStatement:
src/Attachment/Engines/Generator.php#L110
src/Attachment/Engines/Generator.php:110:16: FalsableReturnStatement: The declared return type 'string' for Orchid\Attachment\Engines\Generator::hash does not allow false, but the function returns 'false|string' (see https://psalm.dev/137)
|
FalsableReturnStatement:
src/Attachment/Models/Attachment.php#L133
src/Attachment/Models/Attachment.php:133:16: FalsableReturnStatement: The declared return type 'null|string' for Orchid\Attachment\Models\Attachment::getRelativeUrlAttribute does not allow false, but the function returns 'false|null|string' (see https://psalm.dev/137)
|
UndefinedInterfaceMethod:
src/Screen/Field.php#L523
src/Screen/Field.php:523:33: UndefinedInterfaceMethod: Method Illuminate\Contracts\View\View::toHtml does not exist (see https://psalm.dev/181)
|
InvalidCast:
src/Screen/Fields/Group.php#L210
src/Screen/Fields/Group.php:210:25: InvalidCast: Illuminate\Contracts\View\View cannot be cast to string (see https://psalm.dev/103)
|
InvalidPropertyAssignmentValue:
src/Screen/Layouts/Listener.php#L45
src/Screen/Layouts/Listener.php:45:26: InvalidPropertyAssignmentValue: $this->layouts with declared type 'array<array-key, mixed>' cannot be assigned type 'iterable<mixed, mixed>' (see https://psalm.dev/145)
|
InvalidNullableReturnType:
src/Screen/Screen.php#L103
src/Screen/Screen.php:103:52: InvalidNullableReturnType: The declared return type 'Illuminate\Contracts\View\View' for Orchid\Screen\Screen::build is not nullable, but 'Illuminate\Contracts\View\View|null' contains null (see https://psalm.dev/144)
|
NullableReturnStatement:
src/Screen/Screen.php#L105
src/Screen/Screen.php:105:16: NullableReturnStatement: The declared return type 'Illuminate\Contracts\View\View' for Orchid\Screen\Screen::build is not nullable, but the function returns 'Illuminate\Contracts\View\View|null' (see https://psalm.dev/139)
|
UndefinedInterfaceMethod:
src/Screen/Screen.php#L144
src/Screen/Screen.php:144:15: UndefinedInterfaceMethod: Method Illuminate\Contracts\View\View::fragments does not exist (see https://psalm.dev/181)
|
InvalidArrayAccess:
src/Screen/TD.php#L328
src/Screen/TD.php:328:50: InvalidArrayAccess: Cannot access array value on non-array variable $this->filterOptions of type iterable<mixed, mixed> (see https://psalm.dev/005)
|
NonInvariantPropertyType:
stubs/app/Orchid/Layouts/Examples/ChartPercentageExample.php#L18
stubs/app/Orchid/Layouts/Examples/ChartPercentageExample.php:18:15: NonInvariantPropertyType: Property App\Orchid\Layouts\Examples\ChartPercentageExample::$type has type <empty>, not invariant with Orchid\Screen\Layouts\Chart::$type of type string (see https://psalm.dev/265)
|
composer-validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
phploc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
psalm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|