Skip to content

Commit

Permalink
remove unneeded Entities\Cast\IntBoolCast
Browse files Browse the repository at this point in the history
  • Loading branch information
grimpirate authored Aug 27, 2024
1 parent 7d692f3 commit b5ada1e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 76 deletions.
40 changes: 0 additions & 40 deletions src/Entities/Cast/IntBoolCast.php

This file was deleted.

33 changes: 0 additions & 33 deletions src/Entities/Entity.php

This file was deleted.

4 changes: 3 additions & 1 deletion src/Entities/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@

namespace CodeIgniter\Shield\Entities;

use CodeIgniter\Entity\Entity;

class Login extends Entity
{
/**
* @var array<string, string>
*/
protected $casts = [
'date' => 'datetime',
'success' => 'int_bool',
'success' => 'int-bool',
];
}
3 changes: 2 additions & 1 deletion src/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace CodeIgniter\Shield\Entities;

use CodeIgniter\Database\Exceptions\DataException;
use CodeIgniter\Entity\Entity;
use CodeIgniter\I18n\Time;
use CodeIgniter\Shield\Authentication\Authenticators\Session;
use CodeIgniter\Shield\Authentication\Traits\HasAccessTokens;
Expand Down Expand Up @@ -67,7 +68,7 @@ class User extends Entity
*/
protected $casts = [
'id' => '?integer',
'active' => 'int_bool',
'active' => 'int-bool',
'permissions' => 'array',
'groups' => 'array',
];
Expand Down
3 changes: 2 additions & 1 deletion src/Entities/UserIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace CodeIgniter\Shield\Entities;

use CodeIgniter\Entity\Entity;
use CodeIgniter\I18n\Time;
use CodeIgniter\Shield\Authentication\Passwords;

Expand Down Expand Up @@ -41,7 +42,7 @@ class UserIdentity extends Entity
*/
protected $casts = [
'id' => '?integer',
'force_reset' => 'int_bool',
'force_reset' => 'int-bool',
];

/**
Expand Down

0 comments on commit b5ada1e

Please sign in to comment.