Skip to content

Commit 503ee82

Browse files
committed
add phpstan-bootstrap.php to include the fallback OCI_COMMIT_ON_SUCCESS constant when not defined
1 parent 040e94e commit 503ee82

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ rector.php export-ignore
2828
phpunit.xml.dist export-ignore
2929
phpstan-baseline.neon.dist export-ignore
3030
phpstan.neon.dist export-ignore
31+
phpstan-bootstrap.php export-ignore
3132
.php-cs-fixer.dist.php export-ignore
3233
.php-cs-fixer.no-header.php export-ignore
3334
.php-cs-fixer.user-guide.php export-ignore

phpstan-baseline.neon.dist

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,6 @@ parameters:
455455
count: 1
456456
path: system/Debug/Exceptions.php
457457

458-
-
459-
message: "#^Property CodeIgniter\\\\Debug\\\\Exceptions\\:\\:\\$formatter \\(CodeIgniter\\\\Format\\\\FormatterInterface\\) in isset\\(\\) is not nullable\\.$#"
460-
count: 1
461-
path: system/Debug/Exceptions.php
462-
463458
-
464459
message: "#^Property Config\\\\Exceptions\\:\\:\\$sensitiveDataInTrace \\(array\\) in isset\\(\\) is not nullable\\.$#"
465460
count: 1
@@ -835,11 +830,6 @@ parameters:
835830
count: 1
836831
path: system/Test/Mock/MockConnection.php
837832

838-
-
839-
message: "#^Property CodeIgniter\\\\Test\\\\Mock\\\\MockResourcePresenter\\:\\:\\$formatter \\(CodeIgniter\\\\Format\\\\FormatterInterface\\) in isset\\(\\) is not nullable\\.$#"
840-
count: 1
841-
path: system/Test/Mock/MockResourcePresenter.php
842-
843833
-
844834
message: "#^Property CodeIgniter\\\\Throttle\\\\Throttler\\:\\:\\$testTime \\(int\\) on left side of \\?\\? is not nullable\\.$#"
845835
count: 1

phpstan-bootstrap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
require_once 'system/Test/bootstrap.php';
4+
5+
if (! defined('OCI_COMMIT_ON_SUCCESS')) {
6+
define('OCI_COMMIT_ON_SUCCESS', 32);
7+
}

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ parameters:
2525
- utils/PHPStan
2626
treatPhpDocTypesAsCertain: false
2727
bootstrapFiles:
28-
- system/Test/bootstrap.php
28+
- phpstan-bootstrap.php
2929
excludePaths:
3030
- app/Views/errors/cli/*
3131
- app/Views/errors/html/*

0 commit comments

Comments
 (0)