Skip to content

Commit

Permalink
Refactor: drop ninjify -> use contributte
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Apr 8, 2023
1 parent c8a1859 commit f331f45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
13 changes: 6 additions & 7 deletions composer.json
Expand Up @@ -23,17 +23,16 @@
"require": {
"php": ">= 8.0",
"ext-json": "*",
"guzzlehttp/psr7": "^2.0",
"nette/utils": "^3.1 || ^4.0"
"guzzlehttp/psr7": "^2.4.4",
"nette/utils": "^3.2.9 || ^4.0.0"
},
"require-dev": {
"contributte/guzzlette": "^3.0",
"contributte/tester": "^0.1.0",
"contributte/qa": "^0.4.0",
"mockery/mockery": "^1.3",
"nette/caching": "^3.0",
"nette/di": "^3.1.0",
"nette/tester": "^2.3.1",
"ninjify/nunjuck": "^0.4",
"ninjify/qa": "^0.13",
"nette/caching": "^3.2.2",
"nette/di": "^3.1.2",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-nette": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion ruleset.xml
Expand Up @@ -5,7 +5,7 @@
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<!-- Rulesets -->
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>
<rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/>

<!-- Rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
Expand Down
1 change: 1 addition & 0 deletions src/Auth/AccessTokenClient.php
Expand Up @@ -45,6 +45,7 @@ protected function generateAccessToken(Config $config): AccessToken
throw new ClientException($response->getBody()->getContents(), $response->getStatusCode());
}

// @phpstan-ignore-next-line
$data = Json::decode($response->getBody()->getContents(), Json::FORCE_ARRAY);
assert(is_array($data) && isset($data['access_token'], $data['expires_in'], $data['token_type'], $data['scope']));

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

use Ninjify\Nunjuck\Environment;
use Contributte\Tester\Environment;

if (@!include __DIR__ . '/../vendor/autoload.php') {
echo 'Install Nette Tester using `composer update --dev`';
Expand Down

0 comments on commit f331f45

Please sign in to comment.