Skip to content

Commit 455655a

Browse files
author
Vítězslav Dvořák
committed
Update PHP CS Fixer rules to PHP 8.1 and adjust composer dependencies
1 parent 7e812dc commit 455655a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Ergebnis\PhpCsFixer\Config\Factory;
1717
use Ergebnis\PhpCsFixer\Config\Rules;
18-
use Ergebnis\PhpCsFixer\Config\RuleSet\Php74;
18+
use Ergebnis\PhpCsFixer\Config\RuleSet\Php81;
1919

2020
$header = <<<'HEADER'
2121
This file is part of the AbraFlexiDataTables package
@@ -28,7 +28,7 @@
2828
file that was distributed with this source code.
2929
HEADER;
3030

31-
$ruleSet = Php74::create()->withHeader($header)->withRules(Rules::fromArray([
31+
$ruleSet = Php81::create()->withHeader($header)->withRules(Rules::fromArray([
3232
'blank_line_before_statement' => [
3333
'statements' => [
3434
'break',

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
},
1616
"minimum-stability": "dev",
1717
"require": {
18-
"vitexsoftware/abraflexi-bricks": "dev-main",
19-
"vitexsoftware/ease-bootstrap5-widgets-abraflexi": "dev-main"
18+
"vitexsoftware/abraflexi-bricks": "^1.4",
19+
"vitexsoftware/ease-bootstrap5-widgets-abraflexi": "^1.4"
2020
},
2121
"require-dev": {
2222
"datatables/datatables": "^1.10",
2323
"phpunit/phpunit": "*",
2424
"phpstan/phpstan": "*",
25-
"friendsofphp/php-cs-fixer": "^3.61",
26-
"ergebnis/composer-normalize": "^2.43",
27-
"ergebnis/php-cs-fixer-config": "^6.34",
25+
"friendsofphp/php-cs-fixer": "^3.84",
26+
"ergebnis/composer-normalize": "^2.47",
27+
"ergebnis/php-cs-fixer-config": "^6.50",
2828
"phpstan/phpstan-phpunit": "2.0.x-dev"
2929
},
3030
"config": {

src/AbraFlexi/ui/DataTables/DataTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public static function getUri()
239239
*/
240240
public function dataSourceURI($engine)
241241
{
242-
$conds = ['class' => \get_class($engine)];
242+
$conds = ['class' => $engine::class];
243243

244244
if (null !== $engine->filter) {
245245
$conds = array_merge($engine->filter, $conds);
@@ -260,7 +260,7 @@ public function addButton($function): void
260260

261261
public function addCustomButton(
262262
$caption,
263-
$callFunction = "alert( 'Button activated' );"
263+
$callFunction = "alert( 'Button activated' );",
264264
): void {
265265
$this->buttons[] = <<<'EOD'
266266
{

0 commit comments

Comments
 (0)