File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 },
3131 "require-dev" : {
3232 "boundwize/pyrameter" : " ^0.5" ,
33- "boundwize/structarmed" : " 0.14.16 " ,
33+ "boundwize/structarmed" : " 0.15.1 " ,
3434 "codeigniter/phpstan-codeigniter" : " ^2.0" ,
3535 "codeigniter4/devkit" : " ^1.3" ,
3636 "codeigniter4/framework" : " >=4.3.5 <4.5.0 || ^4.5.1" ,
Original file line number Diff line number Diff line change 55use Boundwize \StructArmed \Architecture ;
66use Boundwize \StructArmed \Preset \Preset ;
77use Boundwize \StructArmed \Preset \Presets \Psr4Preset ;
8+ use Boundwize \StructArmed \Rule \Rules \Class_ \MustBeFinalRule ;
89
910return Architecture::define ()
11+ ->rule (
12+ 'tests.must_be_final ' ,
13+ new MustBeFinalRule (layer: 'tests ' ),
14+ )
1015 ->skip ([
1116 Psr4Preset::CLASSES_MUST_MATCH_COMPOSER => [
1217 __DIR__ . '/src/Database/Migrations ' ,
1318 ],
1419 ])
1520 ->cacheDirectory (is_dir ('/tmp ' ) ? '/tmp/structarmed ' : null )
1621 ->withPreset (Preset::PSR4 ())
22+ ->layer ('tests ' , __DIR__ . '/tests ' )
1723 ->layerPattern ('Model ' , '/^CodeIgniter \\\\Shield \\\\.*Model$/ ' )
1824 ->layerPattern ('Controller ' , '/^CodeIgniter \\\\Shield \\\\Controllers \\\\.*$/ ' )
1925 ->layerPattern ('Config ' , '/^CodeIgniter \\\\Shield \\\\Config \\\\.*$/ ' , '/^.*Services$/ ' )
Original file line number Diff line number Diff line change 1818 *
1919 * Provides a basic registrar class for testing BaseConfig registration functions.
2020 */
21- class Registrar
21+ final class Registrar
2222{
2323 /**
2424 * DB config array for testing purposes.
@@ -27,7 +27,7 @@ class Registrar
2727 *
2828 * @psalm-suppress RedundantCondition
2929 */
30- protected static $ dbConfig = [
30+ private static $ dbConfig = [
3131 'MySQLi ' => [
3232 'DSN ' => '' ,
3333 'hostname ' => '127.0.0.1 ' ,
You can’t perform that action at this time.
0 commit comments