Skip to content

Commit 8e0295e

Browse files
committed
support for PHP 8.4
1 parent 1ce580a commit 8e0295e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

preset-fixer/php84.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$config = require __DIR__ . '/php83.php';
6+
7+
$rules = [
8+
'@PHP84Migration' => true,
9+
];
10+
11+
$config->setRules($rules + $config->getRules());
12+
return $config;

preset-sniffer/php84.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PHP 8.4" namespace="Nette">
3+
<rule ref="./php83.xml"/>
4+
5+
<config name="php_version" value="80400"/>
6+
</ruleset>

0 commit comments

Comments
 (0)