Skip to content

A free open source IT asset/license management system

Argh. Fixed php 8.3-only typed class constants

snipebe3a20d0ed02
diff --git a/app/Console/Commands/Purge.php b/app/Console/Commands/Purge.php
index b1f30b11b8..99031d6f55 100644
--- a/app/Console/Commands/Purge.php
+++ b/app/Console/Commands/Purge.php
@@ -34,7 +34,7 @@ class Purge extends Command
* users (LDAP-sync placeholders, etc.) set this to '0' and shouldn't be
* garbage-collected here.
*/
- private const array PARENT_QUERY_FILTERS = [
+ private const PARENT_QUERY_FILTERS = [
User::class => [['column' => 'show_in_list', 'op' => '!=', 'value' => '0']],
];
@@ -47,7 +47,7 @@ class Purge extends Command
* covers the parent→child relations where the parent "owns" the child
* outright and orphaning it makes no sense.
*/
- private const array FK_CHILDREN = [
+ private const FK_CHILDREN = [
Asset::class => [
['table' => 'maintenances', 'foreign_key' => 'asset_id'],
],