Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/sast-scan.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/secrets-scan.yml

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"files": ["src/Support/helper.php"]
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"phpunit/php-code-coverage": "^8.0",
"phpunit/phpunit": "^10.0",
"phpunit/php-code-coverage": "^10.0",
"code-lts/doctum": "^5.3"
},
"scripts": {
Expand Down
1,380 changes: 619 additions & 761 deletions composer.lock

Large diffs are not rendered by default.

47 changes: 24 additions & 23 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit>
<testsuites>
<testsuite name="unit">
<directory>test</directory>
</testsuite>
</testsuites>

<logging>
<log type="coverage-html" target="./tmp/report" lowUpperBound="35"
highLowerBound="70"/>
<log type="coverage-clover" target="./tmp/coverage.xml"/>
<log type="coverage-php" target="./tmp/coverage.serialized"/>
<log type="coverage-text" target="./stdout" showUncoveredFiles="false"/>
<log type="junit" target="./tmp/logfile.xml"/>
<log type="testdox-html" target="./tmp/testdox.html"/>
<log type="testdox-text" target="./tmp/testdox.txt"/>
</logging>

<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage includeUncoveredFiles="true">
<report>
<clover outputFile="./tmp/coverage.xml"/>
<html outputDirectory="./tmp/report" lowUpperBound="35" highLowerBound="70"/>
<php outputFile="./tmp/coverage.serialized"/>
<text outputFile="./stdout" showUncoveredFiles="false"/>
</report>
</coverage>
<testsuites>
<testsuite name="unit">
<directory>test</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="./tmp/logfile.xml"/>
<testdoxHtml outputFile="./tmp/testdox.html"/>
<testdoxText outputFile="./tmp/testdox.txt"/>
</logging>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
1 change: 1 addition & 0 deletions src/Contentstack.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
*/
#[\AllowDynamicProperties]
abstract class Contentstack
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Error/CSException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class CSException extends \Exception
{
var $error_message;
Expand Down
1 change: 1 addition & 0 deletions src/Stack/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Assets extends BaseQuery
{

Expand Down
1 change: 1 addition & 0 deletions src/Stack/BaseQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
abstract class BaseQuery
{
var $subQuery;
Expand Down
1 change: 1 addition & 0 deletions src/Stack/ContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class ContentType
{

Expand Down
1 change: 1 addition & 0 deletions src/Stack/ContentType/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Entry extends BaseQuery
{
var $operation;
Expand Down
1 change: 1 addition & 0 deletions src/Stack/ContentType/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Query extends BaseQuery
{
var $operation;
Expand Down
1 change: 1 addition & 0 deletions src/Stack/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Result
{
private $_object;
Expand Down
1 change: 1 addition & 0 deletions src/Stack/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Stack
{
/* header - array where all the headers for the request will be stored */
Expand Down
1 change: 1 addition & 0 deletions src/Support/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
* @link https://pear.php.net/package/contentstack
* */
#[\AllowDynamicProperties]
class Utility
{
/**
Expand Down