Skip to content

Commit

Permalink
[fix] fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
aryala7 committed Nov 25, 2023
2 parents 3d581e7 + 18127b5 commit 797e49b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace TookanTech\Chapaar;

use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

use TookanTech\Chapaar\Events\SmsSent;
use TookanTech\Chapaar\Events\StoreSmsMessage;

Expand Down
2 changes: 1 addition & 1 deletion src/Events/SmsSent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public function __construct($provider, $data, $status)
$this->data = $data;
$this->status = $status;
}
}
}
6 changes: 2 additions & 4 deletions src/Listeners/StoreSmsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace TookanTech\Chapaar\Events;

use TookanTech\Chapaar\Events\SmsSent;
use TookanTech\Chapaar\Models\SmsMessage;
use Illuminate\Contracts\Queue\ShouldQueue;

use TookanTech\Chapaar\Models\SmsMessage;

class StoreSmsMessage implements ShouldQueue
{
Expand All @@ -17,4 +15,4 @@ public function handle(SmsSent $event)
$smsMessage->status = $event->status;

Check failure on line 15 in src/Listeners/StoreSmsMessage.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to property $status on an unknown class TookanTech\Chapaar\Models\SmsMessage.

Check failure on line 15 in src/Listeners/StoreSmsMessage.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to property $status on an unknown class TookanTech\Chapaar\Models\SmsMessage.
$smsMessage->save();

Check failure on line 16 in src/Listeners/StoreSmsMessage.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to method save() on an unknown class TookanTech\Chapaar\Models\SmsMessage.
}
}
}
3 changes: 1 addition & 2 deletions src/Models/SmsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
use Illuminate\Database\Eloquent\Casts\AsCollection;
use Illuminate\Database\Eloquent\Model;

class SmsMessage extends Model
class SmsMessage extends Model
{

protected $fillable = [
'provider',
'data',
Expand Down

0 comments on commit 797e49b

Please sign in to comment.