Skip to content

Commit 1ce580a

Browse files
committed
support for PHP 8.3
1 parent 0a9412f commit 1ce580a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

preset-fixer/php83.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__ . '/php82.php';
6+
7+
$rules = [
8+
'@PHP83Migration' => true,
9+
];
10+
11+
$config->setRules($rules + $config->getRules());
12+
return $config;

preset-sniffer/php83.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.3" namespace="Nette">
3+
<rule ref="./php82.xml"/>
4+
5+
<config name="php_version" value="80300"/>
6+
</ruleset>

0 commit comments

Comments
 (0)