Skip to content

Commit 055f380

Browse files
committed
added PHP 8.5 presets
1 parent 4a64675 commit 055f380

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

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

0 commit comments

Comments
 (0)