Skip to content

Commit 77ba215

Browse files
Added PHP8.2 support. (#36)
PHP 7.4, the last version in the 7.x series, reached its End-of-Life date on November 28th, 2022. So, Contentstack does not provide any support for PHP 7.x series.
1 parent b21e660 commit 77ba215

File tree

15 files changed

+655
-808
lines changed

15 files changed

+655
-808
lines changed

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/secrets-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"files": ["src/Support/helper.php"]
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^9.0",
29-
"phpunit/php-code-coverage": "^8.0",
28+
"phpunit/phpunit": "^10.0",
29+
"phpunit/php-code-coverage": "^10.0",
3030
"code-lts/doctum": "^5.3"
3131
},
3232
"scripts": {

composer.lock

Lines changed: 619 additions & 761 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit>
3-
<testsuites>
4-
<testsuite name="unit">
5-
<directory>test</directory>
6-
</testsuite>
7-
</testsuites>
8-
9-
<logging>
10-
<log type="coverage-html" target="./tmp/report" lowUpperBound="35"
11-
highLowerBound="70"/>
12-
<log type="coverage-clover" target="./tmp/coverage.xml"/>
13-
<log type="coverage-php" target="./tmp/coverage.serialized"/>
14-
<log type="coverage-text" target="./stdout" showUncoveredFiles="false"/>
15-
<log type="junit" target="./tmp/logfile.xml"/>
16-
<log type="testdox-html" target="./tmp/testdox.html"/>
17-
<log type="testdox-text" target="./tmp/testdox.txt"/>
18-
</logging>
19-
20-
<filter>
21-
<whitelist addUncoveredFilesFromWhitelist="true">
22-
<directory suffix=".php">src</directory>
23-
</whitelist>
24-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage includeUncoveredFiles="true">
4+
<report>
5+
<clover outputFile="./tmp/coverage.xml"/>
6+
<html outputDirectory="./tmp/report" lowUpperBound="35" highLowerBound="70"/>
7+
<php outputFile="./tmp/coverage.serialized"/>
8+
<text outputFile="./stdout" showUncoveredFiles="false"/>
9+
</report>
10+
</coverage>
11+
<testsuites>
12+
<testsuite name="unit">
13+
<directory>test</directory>
14+
</testsuite>
15+
</testsuites>
16+
<logging>
17+
<junit outputFile="./tmp/logfile.xml"/>
18+
<testdoxHtml outputFile="./tmp/testdox.html"/>
19+
<testdoxText outputFile="./tmp/testdox.txt"/>
20+
</logging>
21+
<source>
22+
<include>
23+
<directory suffix=".php">src</directory>
24+
</include>
25+
</source>
2526
</phpunit>

src/Contentstack.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
3131
* @link https://pear.php.net/package/contentstack
3232
*/
33+
#[\AllowDynamicProperties]
3334
abstract class Contentstack
3435
{
3536
/**

src/Error/CSException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
2929
* @link https://pear.php.net/package/contentstack
3030
* */
31+
#[\AllowDynamicProperties]
3132
class CSException extends \Exception
3233
{
3334
var $error_message;

src/Stack/Assets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
3636
* @link https://pear.php.net/package/contentstack
3737
* */
38+
#[\AllowDynamicProperties]
3839
class Assets extends BaseQuery
3940
{
4041

src/Stack/BaseQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
3232
* @link https://pear.php.net/package/contentstack
3333
* */
34+
#[\AllowDynamicProperties]
3435
abstract class BaseQuery
3536
{
3637
var $subQuery;

src/Stack/ContentType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
3232
* @link https://pear.php.net/package/contentstack
3333
* */
34+
#[\AllowDynamicProperties]
3435
class ContentType
3536
{
3637

0 commit comments

Comments
 (0)