CodeIgniter4/.php-cs-fixer.tests.php
Michal Sniatala 6cbbf601b0
fix: handling binary data for prepared statement (#9337)
* fix prepare statement sqlite

* fix prepare statement postgre

* fix prepare statement sqlsrv

* fix prepare statement oci8

* tests

* abstract isBinary() method

* fix prepare statement mysqli

* fix prepare statement oci8

* sqlsrv blob support

* fix tests

* add changelog

* fix rector

* make sqlsrv happy

* make oci8 happy - hopefully

* add a note about options for prepared statement

* ignore PreparedQueryTest.php file

* apply code suggestion for oci8
2024-12-27 08:14:06 +01:00

41 lines
957 B
PHP

<?php
declare(strict_types=1);
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use PhpCsFixer\ConfigInterface;
use PhpCsFixer\Finder;
/** @var ConfigInterface $config */
$config = require __DIR__ . '/.php-cs-fixer.dist.php';
$finder = Finder::create()
->files()
->in([
__DIR__ . '/tests',
])
->notPath([
'_support/View/Cells/multiplier.php',
'_support/View/Cells/colors.php',
'_support/View/Cells/addition.php',
'system/Database/Live/PreparedQueryTest.php',
])
->notName('#Foobar.php$#');
$overrides = [
'void_return' => true,
];
return $config
->setFinder($finder)
->setCacheFile('build/.php-cs-fixer.tests.cache')
->setRules(array_merge($config->getRules(), $overrides));