Skip to content

Commit 4a222bf

Browse files
committed
Merge branch '3.x' into development
2 parents 3e71a02 + 667f66f commit 4a222bf

9 files changed

Lines changed: 81 additions & 87 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
timeout-minutes: 10
1313

14-
strategy:
15-
fail-fast: true
16-
17-
name: PHP 8.1
14+
name: PHP 8.3
1815

1916
steps:
2017
- name: Checkout
21-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
2219

2320
- name: Setup PHP
2421
uses: shivammathur/setup-php@v2
2522
with:
26-
php-version: 8.1
23+
php-version: 8.3
2724
tools: composer
2825
coverage: xdebug
2926

@@ -63,14 +60,11 @@ jobs:
6360
runs-on: ubuntu-22.04
6461
timeout-minutes: 10
6562

66-
strategy:
67-
fail-fast: true
68-
6963
name: PHP Latest
7064

7165
steps:
7266
- name: Checkout
73-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
7468

7569
- name: Setup PHP
7670
uses: shivammathur/setup-php@v2

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
image: registry.gitlab.com/aplus-framework/images/base:2
2+
image: registry.gitlab.com/aplus-framework/images/base:4
33

44
include:
55
- template: Security/SAST.gitlab-ci.yml

.phpstorm.meta.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,6 @@
100100
);
101101
registerArgumentsSet(
102102
'response_headers',
103-
\Framework\HTTP\Header::CACHE_CONTROL,
104-
\Framework\HTTP\Header::CONNECTION,
105-
\Framework\HTTP\Header::CONTENT_DISPOSITION,
106-
\Framework\HTTP\Header::CONTENT_ENCODING,
107-
\Framework\HTTP\Header::CONTENT_LANGUAGE,
108-
\Framework\HTTP\Header::CONTENT_LENGTH,
109-
\Framework\HTTP\Header::CONTENT_LOCATION,
110-
\Framework\HTTP\Header::CONTENT_RANGE,
111-
\Framework\HTTP\Header::CONTENT_TYPE,
112-
\Framework\HTTP\Header::DATE,
113-
\Framework\HTTP\Header::KEEP_ALIVE,
114-
\Framework\HTTP\Header::TRAILER,
115-
\Framework\HTTP\Header::TRANSFER_ENCODING,
116-
\Framework\HTTP\Header::VIA,
117-
\Framework\HTTP\Header::WARNING,
118-
\Framework\HTTP\Header::X_REQUEST_ID,
119103
\Framework\HTTP\ResponseHeader::ACCEPT_RANGES,
120104
\Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_CREDENTIALS,
121105
\Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_HEADERS,
@@ -125,13 +109,24 @@
125109
\Framework\HTTP\ResponseHeader::ACCESS_CONTROL_MAX_AGE,
126110
\Framework\HTTP\ResponseHeader::AGE,
127111
\Framework\HTTP\ResponseHeader::ALLOW,
112+
\Framework\HTTP\ResponseHeader::CACHE_CONTROL,
128113
\Framework\HTTP\ResponseHeader::CLEAR_SITE_DATA,
114+
\Framework\HTTP\ResponseHeader::CONNECTION,
115+
\Framework\HTTP\ResponseHeader::CONTENT_DISPOSITION,
116+
\Framework\HTTP\ResponseHeader::CONTENT_ENCODING,
117+
\Framework\HTTP\ResponseHeader::CONTENT_LANGUAGE,
118+
\Framework\HTTP\ResponseHeader::CONTENT_LENGTH,
119+
\Framework\HTTP\ResponseHeader::CONTENT_LOCATION,
120+
\Framework\HTTP\ResponseHeader::CONTENT_RANGE,
129121
\Framework\HTTP\ResponseHeader::CONTENT_SECURITY_POLICY,
130122
\Framework\HTTP\ResponseHeader::CONTENT_SECURITY_POLICY_REPORT_ONLY,
123+
\Framework\HTTP\ResponseHeader::CONTENT_TYPE,
124+
\Framework\HTTP\ResponseHeader::DATE,
131125
\Framework\HTTP\ResponseHeader::ETAG,
132126
\Framework\HTTP\ResponseHeader::EXPECT_CT,
133127
\Framework\HTTP\ResponseHeader::EXPIRES,
134128
\Framework\HTTP\ResponseHeader::FEATURE_POLICY,
129+
\Framework\HTTP\ResponseHeader::KEEP_ALIVE,
135130
\Framework\HTTP\ResponseHeader::LAST_MODIFIED,
136131
\Framework\HTTP\ResponseHeader::LOCATION,
137132
\Framework\HTTP\ResponseHeader::PROXY_AUTHENTICATE,
@@ -145,12 +140,17 @@
145140
\Framework\HTTP\ResponseHeader::STRICT_TRANSPORT_SECURITY,
146141
\Framework\HTTP\ResponseHeader::TIMING_ALLOW_ORIGIN,
147142
\Framework\HTTP\ResponseHeader::TK,
143+
\Framework\HTTP\ResponseHeader::TRAILER,
144+
\Framework\HTTP\ResponseHeader::TRANSFER_ENCODING,
148145
\Framework\HTTP\ResponseHeader::VARY,
146+
\Framework\HTTP\ResponseHeader::VIA,
147+
\Framework\HTTP\ResponseHeader::WARNING,
149148
\Framework\HTTP\ResponseHeader::WWW_AUTHENTICATE,
150149
\Framework\HTTP\ResponseHeader::X_CONTENT_TYPE_OPTIONS,
151150
\Framework\HTTP\ResponseHeader::X_DNS_PREFETCH_CONTROL,
152151
\Framework\HTTP\ResponseHeader::X_FRAME_OPTIONS,
153152
\Framework\HTTP\ResponseHeader::X_POWERED_BY,
153+
\Framework\HTTP\ResponseHeader::X_REQUEST_ID,
154154
\Framework\HTTP\ResponseHeader::X_XSS_PROTECTION,
155155
'Accept-Ranges',
156156
'Access-Control-Allow-Credentials',

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
}
3434
],
3535
"require": {
36-
"php": ">=8.1",
37-
"aplus/mvc": "^3.0",
38-
"phpunit/phpunit": "^10.5"
36+
"php": ">=8.3",
37+
"aplus/mvc": "^4.0",
38+
"phpunit/phpunit": "~11.3.6"
3939
},
4040
"require-dev": {
4141
"ext-xdebug": "*",

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
package:
4-
image: registry.gitlab.com/aplus-framework/images/package:2
4+
image: registry.gitlab.com/aplus-framework/images/package:4
55
container_name: package-testing
66
working_dir: /package
77
volumes:

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
33
bootstrap="vendor/autoload.php" colors="true" stopOnError="false" stopOnFailure="false"
44
stopOnIncomplete="false" stopOnSkipped="false"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd"
66
cacheDirectory=".phpunit.cache">
77
<coverage>
88
<report>

src/AppTesting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function runCliWithExec(string $command) : void
4141
};
4242
// We need to restore the error handler to avoid conflict with PHPUnit.
4343
// See: https://github.com/sebastianbergmann/phpunit/issues/5403
44-
\restore_error_handler();
44+
//\restore_error_handler();
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)