Skip to content

Commit 540acd8

Browse files
authored
fix(deps): replace supportpal/eloquent-model with jenssegers/model (#273)
* chore(deps): replace supportpal/eloquent-model with jenssegers/model * wip * remove type * update lock
1 parent 03457b1 commit 540acd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+113
-118
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"require": {
1313
"php": "^8.1",
1414
"guzzlehttp/guzzle": "^7.0",
15+
"jenssegers/model": "^1.5",
1516
"kevinrob/guzzle-cache-middleware": "^5.0 || ^6.0",
1617
"phpdocumentor/reflection-docblock": "^5.2",
1718
"propaganistas/laravel-phone": "^5.3",
1819
"psr/http-message": "^1.1|^2.0",
19-
"supportpal/eloquent-model": "^1.0",
2020
"symfony/cache": "^6.2|^7.2",
2121
"symfony/config": "^6.2|^7.0",
2222
"symfony/dependency-injection": "^6.2|^7.0",

composer.lock

Lines changed: 52 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Model/Core/Brand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Brand extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'id' => 'int',
1212
'name' => 'string',
1313
'enabled' => 'int',

src/Model/Core/BrandTranslation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class BrandTranslation extends Translation
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'id' => 'int',
1212
'name' => 'string',
1313
'brand_id' => 'int',

src/Model/Core/IpBan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class IpBan extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'id' => 'int',
1212
'ip' => 'string',
1313
'reason' => 'string',

src/Model/Core/Language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Language extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'id' => 'int',
1212
'name' => 'string',
1313
'code' => 'string',

src/Model/Core/Request/CreateIpBan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class CreateIpBan extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'ip' => 'string',
1212
'reason' => 'string',
1313
'type' => 'int',

src/Model/Core/Request/CreateSpamRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class CreateSpamRule extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'text' => 'string',
1212
'type' => 'int',
1313
'event_message' => 'bool',

src/Model/Core/Request/CreateWhitelistedIp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class CreateWhitelistedIp extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'ip' => 'string',
1212
'description' => 'string',
1313
'event_user' => 'bool',

src/Model/Core/SpamRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class SpamRule extends Model
88
{
99
/** @var array<string, string> */
10-
protected array $casts = [
10+
protected $casts = [
1111
'id' => 'int',
1212
'text' => 'string',
1313
'event_message' => 'bool',

0 commit comments

Comments
 (0)