Skip to content

chore: enable phpstan #1

chore: enable phpstan

chore: enable phpstan #1

Triggered via push November 12, 2023 17:03
Status Failure
Total duration 41s
Artifacts

backend.yml

on: push
Matrix: run / phpstan
Matrix: run / test
Fit to window
Zoom out
Zoom in

Annotations

40 errors
run / PHPStan PHP 8.2: src/Access/PollPolicy.php#L22
Right side of && is always true.
run / PHPStan PHP 8.2: src/Commands/CreatePoll.php#L50
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.2: src/Commands/CreatePollHandler.php#L91
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.2: src/Commands/EditPollHandler.php#L96
Property FoF\Polls\Poll::$end_date (Carbon\Carbon) does not accept null.
run / PHPStan PHP 8.2: src/Commands/MultipleVotesPollHandler.php#L127
Call to an undefined method Illuminate\Database\ConnectionResolverInterface::transaction().
run / PHPStan PHP 8.2: src/Commands/MultipleVotesPollHandler.php#L191
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.2: src/Commands/MultipleVotesPollHandler.php#L212
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.2: src/Poll.php#L55
PHPDoc type mixed of property FoF\Polls\Poll::$dates is not covariant with PHPDoc type array of overridden property Illuminate\Database\Eloquent\Model::$dates.
run / PHPStan PHP 8.2
Process completed with exit code 1.
run / PHPStan PHP 7.4: src/Access/PollPolicy.php#L22
Right side of && is always true.
run / PHPStan PHP 7.4: src/Commands/CreatePoll.php#L50
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 7.4: src/Commands/CreatePollHandler.php#L91
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 7.4: src/Commands/EditPollHandler.php#L96
Property FoF\Polls\Poll::$end_date (Carbon\Carbon) does not accept null.
run / PHPStan PHP 7.4: src/Commands/MultipleVotesPollHandler.php#L127
Call to an undefined method Illuminate\Database\ConnectionResolverInterface::transaction().
run / PHPStan PHP 7.4: src/Commands/MultipleVotesPollHandler.php#L191
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 7.4: src/Commands/MultipleVotesPollHandler.php#L212
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 7.4: src/Poll.php#L55
PHPDoc type mixed of property FoF\Polls\Poll::$dates is not covariant with PHPDoc type array of overridden property Illuminate\Database\Eloquent\Model::$dates.
run / PHPStan PHP 7.4
Process completed with exit code 1.
run / PHPStan PHP 8.0
The job was canceled because "_8_2" failed.
run / PHPStan PHP 8.0: src/Access/PollPolicy.php#L22
Right side of && is always true.
run / PHPStan PHP 8.0: src/Commands/CreatePoll.php#L50
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.0: src/Commands/CreatePollHandler.php#L91
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.0: src/Commands/EditPollHandler.php#L96
Property FoF\Polls\Poll::$end_date (Carbon\Carbon) does not accept null.
run / PHPStan PHP 8.0: src/Commands/MultipleVotesPollHandler.php#L127
Call to an undefined method Illuminate\Database\ConnectionResolverInterface::transaction().
run / PHPStan PHP 8.0: src/Commands/MultipleVotesPollHandler.php#L191
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.0: src/Commands/MultipleVotesPollHandler.php#L212
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.0: src/Poll.php#L55
PHPDoc type mixed of property FoF\Polls\Poll::$dates is not covariant with PHPDoc type array of overridden property Illuminate\Database\Eloquent\Model::$dates.
run / PHPStan PHP 8.0
The operation was canceled.
run / PHPStan PHP 7.3
The job was canceled because "_8_2" failed.
run / PHPStan PHP 7.3
The operation was canceled.
run / PHPStan PHP 8.1
The job was canceled because "_8_2" failed.
run / PHPStan PHP 8.1: src/Access/PollPolicy.php#L22
Right side of && is always true.
run / PHPStan PHP 8.1: src/Commands/CreatePoll.php#L50
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.1: src/Commands/CreatePollHandler.php#L91
Access to an undefined property FoF\Polls\Commands\CreatePoll::$savePollOn.
run / PHPStan PHP 8.1: src/Commands/EditPollHandler.php#L96
Property FoF\Polls\Poll::$end_date (Carbon\Carbon) does not accept null.
run / PHPStan PHP 8.1: src/Commands/MultipleVotesPollHandler.php#L127
Call to an undefined method Illuminate\Database\ConnectionResolverInterface::transaction().
run / PHPStan PHP 8.1: src/Commands/MultipleVotesPollHandler.php#L191
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.1: src/Commands/MultipleVotesPollHandler.php#L212
PHPDoc tag @throws with type Pusher\PusherException is not subtype of Throwable
run / PHPStan PHP 8.1: src/Poll.php#L55
PHPDoc type mixed of property FoF\Polls\Poll::$dates is not covariant with PHPDoc type array of overridden property Illuminate\Database\Eloquent\Model::$dates.
run / PHPStan PHP 8.1
The operation was canceled.