Skip to content

Commit 37eb3c2

Browse files
committed
adjustments for php-8.2
1 parent abd18c5 commit 37eb3c2

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
19+
"php": "^8.2",
2020
"illuminate/config": "^v10.19",
2121
"illuminate/console": "^v10.19",
2222
"illuminate/contracts": "^v10.19",

src/Actions/Plans/AttachFeatureToPlanAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function execute(Plan $plan, Feature $feature, ?int $defaultQuota = null)
1717
$defaultQuota = null;
1818
} else {
1919
// cast to integer
20-
$defaultQuota += 0;
20+
$defaultQuota = intval($defaultQuota);
2121
$defaultQuota = max(0, $defaultQuota);
2222
}
2323

src/Commands/FeaturesListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FeaturesListCommand extends Command
1111

1212
public $description = 'List all features';
1313

14-
public function handle()
14+
public function handle(): void
1515
{
1616
$rows = Feature::orderBy('code')
1717
->get()

src/Commands/PlansListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PlansListCommand extends Command
1111

1212
public $description = 'List all plans with their features';
1313

14-
public function handle()
14+
public function handle(): void
1515
{
1616
$rows = Plan::orderBy('name')
1717
->get()

src/Insights/Customer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class Customer
1111
{
1212
/**
1313
* returns all customers - distinct list of subscribers
14-
*
15-
* @return \Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model>
1614
*/
1715
public function get(?CarbonPeriod $period = null): Collection
1816
{

0 commit comments

Comments
 (0)