Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Fireable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*
* @return $this
*/
public static function make(Model $model): static

Check failure on line 21 in src/Fireable.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @param for parameter $model with type BinaryCats\FireableAttributeEvents\FireableAttributes|Illuminate\Database\Eloquent\Model is not subtype of native type Illuminate\Database\Eloquent\Model.

Check failure on line 21 in src/Fireable.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter $model of method BinaryCats\FireableAttributeEvents\Fireable::make() has invalid type BinaryCats\FireableAttributeEvents\FireableAttributes.
{
return app(static::class, [
'model' => $model,
'model' => $model,
'fireableAttributes' => $model->getFireableAttributes(),

Check failure on line 25 in src/Fireable.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to an undefined method Illuminate\Database\Eloquent\Model::getFireableAttributes().
]);
}

Expand All @@ -33,7 +33,7 @@
*
* @return void
*/
public function processAttributes(): void

Check failure on line 36 in src/Fireable.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @param references unknown parameter: $model
{
$this->updatedAttributes()->each(function ($value, $attribute) {
if ($eventName = $this->getEventName($attribute, $value)) {
Expand Down
Loading