Skip to content

Commit 100c39d

Browse files
authored
Merge pull request #227 from Icinga/add-php-83
workflows: Add PHP 8.3
2 parents 4db2dd0 + 8918137 commit 100c39d

File tree

3 files changed

+6
-35
lines changed

3 files changed

+6
-35
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
20+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
2121
os: ['ubuntu-latest']
2222

2323
steps:
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
fail-fast: false
6262
matrix:
63-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
63+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
6464
os: ['ubuntu-latest']
6565

6666
steps:

application/controllers/UsageController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function indexAction()
9595
$this->addControl($searchBar);
9696

9797
$this->handleFormatRequest($targets, function (Query $targets) {
98+
/** @var X509Certificate $usage */
9899
foreach ($targets as $usage) {
99100
$usage->valid_from = $usage->valid_from->format('l F jS, Y H:i:s e');
100101
$usage->valid_to = $usage->valid_to->format('l F jS, Y H:i:s e');

phpstan-baseline-common.neon

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -241,23 +241,8 @@ parameters:
241241
path: application/controllers/SniController.php
242242

243243
-
244-
message: "#^Cannot access property \\$chain on mixed\\.$#"
245-
count: 4
246-
path: application/controllers/UsageController.php
247-
248-
-
249-
message: "#^Cannot access property \\$hostname on mixed\\.$#"
250-
count: 1
251-
path: application/controllers/UsageController.php
252-
253-
-
254-
message: "#^Cannot access property \\$ip on mixed\\.$#"
255-
count: 1
256-
path: application/controllers/UsageController.php
257-
258-
-
259-
message: "#^Cannot access property \\$port on mixed\\.$#"
260-
count: 1
244+
message: "#^Cannot access property \\$target on mixed\\.$#"
245+
count: 3
261246
path: application/controllers/UsageController.php
262247

263248
-
@@ -266,20 +251,10 @@ parameters:
266251
path: application/controllers/UsageController.php
267252

268253
-
269-
message: "#^Cannot access property \\$valid_from on mixed\\.$#"
270-
count: 2
271-
path: application/controllers/UsageController.php
272-
273-
-
274-
message: "#^Cannot access property \\$valid_to on mixed\\.$#"
254+
message: "#^Cannot call method format\\(\\) on mixed\\.$#"
275255
count: 2
276256
path: application/controllers/UsageController.php
277257

278-
-
279-
message: "#^Cannot call method getExportableColumns\\(\\) on mixed\\.$#"
280-
count: 1
281-
path: application/controllers/UsageController.php
282-
283258
-
284259
message: "#^Method Icinga\\\\Module\\\\X509\\\\Controllers\\\\UsageController\\:\\:completeAction\\(\\) has no return type specified\\.$#"
285260
count: 1
@@ -295,11 +270,6 @@ parameters:
295270
count: 1
296271
path: application/controllers/UsageController.php
297272

298-
-
299-
message: "#^Parameter \\#1 \\$iterator of function iterator_to_array expects Traversable, mixed given\\.$#"
300-
count: 1
301-
path: application/controllers/UsageController.php
302-
303273
-
304274
message: "#^Parameter \\#1 \\$peekAhead of method ipl\\\\Orm\\\\Query\\:\\:peekAhead\\(\\) expects bool, null given\\.$#"
305275
count: 1

0 commit comments

Comments
 (0)