Skip to content

Commit

Permalink
Merge pull request #133 from CyberfusionIO/feature/laravel-12
Browse files Browse the repository at this point in the history
Add support for Laravel 12
  • Loading branch information
WilliamDEdwards authored Mar 1, 2025
2 parents 5e1bb4f + d683ad6 commit 310043d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
this package and not the Core API. See the changelog of the [Core API](https://core-api.cyberfusion.io/redoc#section/Changelog)
for detailed information.

## [1.119.0]

### Added

- Add support for Laravel 12.

## [1.118.1]

### Fixed
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"php": "^8.1",
"ext-json": "*",
"guzzlehttp/guzzle": "^7.2",
"illuminate/support": "^8.22 || ^9.0 || ^10.0 || ^11.0",
"ramsey/uuid": "^3.9 || ^4.0",
"illuminate/support": "^8.22|^9.0|^10.0|^11.0|^12.0",
"ramsey/uuid": "^3.9|^4.0",
"vdhicts/http-query-builder": "^1.0"
},
"require-dev": {
"phpstan/phpstan": "^1.2",
"phpunit/phpunit": "^9.6 || 10.0",
"rector/rector": "^1.0.0",
"phpstan/phpstan": "^1.2|^2.0",
"phpunit/phpunit": "^10.0|^11.0|^12.0",
"rector/rector": "^1.0|^2.0",
"symplify/easy-coding-standard": "^12.0"
},
"autoload": {
Expand Down
10 changes: 6 additions & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<html outputDirectory="./build/report/"/>
</report>
Expand All @@ -13,4 +10,9 @@
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Client implements ClientContract

private const TIMEOUT = 180;

private const VERSION = '1.118.1';
private const VERSION = '1.119.0';

private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;

Expand Down
6 changes: 0 additions & 6 deletions tests/Support/ListFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public function testListFilterDefaults()

$this->assertSame(0, $listFilter->getSkip());
$this->assertSame(100, $listFilter->getLimit());
$this->assertIsArray($listFilter->getFilter());
$this->assertCount(0, $listFilter->getFilter());
$this->assertIsArray($listFilter->getSort());
$this->assertCount(0, $listFilter->getSort());
}

Expand All @@ -40,9 +38,7 @@ public function testListFilterWithArrays()

$this->assertSame($skip, $listFilter->getSkip());
$this->assertSame($limit, $listFilter->getLimit());
$this->assertIsArray($listFilter->getFilter());
$this->assertCount(1, $listFilter->getFilter());
$this->assertIsArray($listFilter->getSort());
$this->assertCount(1, $listFilter->getSort());
}

Expand Down Expand Up @@ -90,9 +86,7 @@ public function testListFilterWithObjects()

$this->assertSame($skip, $listFilter->getSkip());
$this->assertSame($limit, $listFilter->getLimit());
$this->assertIsArray($listFilter->getFilter());
$this->assertCount(1, $listFilter->getFilter());
$this->assertIsArray($listFilter->getSort());
$this->assertCount(1, $listFilter->getSort());
}

Expand Down

0 comments on commit 310043d

Please sign in to comment.