diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a989b78 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + gh-actions: + patterns: ['actions/*'] + docker: + patterns: ['docker/*'] + codecov: + patterns: ['codecov/*'] diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a9026e5..8e0b4e9 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: - php-version: [8.1, 8.2, 8.3] + php-version: [8.3] steps: - name: 'Checkout current revision' diff --git a/.scrutinizer.yml b/.scrutinizer.yml index ef1b3c0..d10f5c8 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -17,14 +17,12 @@ filter: build: image: default-jammy environment: - node: v18 + node: v22 nodes: analysis: environment: php: - version: 8.2 - pecl_extensions: - - zip + version: 8.3.3 tests: override: - php-scrutinizer-run diff --git a/README.md b/README.md index c367510..8c71b6d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![image](https://img.shields.io/packagist/v/bedita/dev-tools.svg?label=stable)](https://packagist.org/packages/bedita/dev-tools) [![image](https://img.shields.io/github/license/bedita/dev-tools.svg)](https://github.com/bedita/dev-tools/blob/master/LICENSE.LGPL) -Plugin to help with development in [BEdita 4](http://www.bedita.com). +Plugin to help with development in [BEdita](http://www.bedita.com). This plugin adds some useful tabs to CakePHP Debug Kit toolbar, as well as a user-friendly HTML rendering of API responses. diff --git a/composer.json b/composer.json index 70f002b..f2b8ab5 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.3", "ext-json": "*", "cakephp/cakephp": "^5.1.0", "cakephp/debug_kit": "^5.0.0" @@ -30,7 +30,7 @@ "cakephp/bake": "^3.0.0", "cakephp/migrations": "^4.0.0", "cakephp/cakephp-codesniffer": "^5.0", - "phpstan/phpstan": "^1.5", + "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^10.1.0" }, "autoload": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index e31812b..ea5a195 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,5 @@ parameters: + phpVersion: 80300 # PHP 8.3 bootstrapFiles: - tests/bootstrap.php paths: diff --git a/src/Command/ChangeLogCommand.php b/src/Command/ChangeLogCommand.php index fb76873..87eea1b 100644 --- a/src/Command/ChangeLogCommand.php +++ b/src/Command/ChangeLogCommand.php @@ -88,6 +88,7 @@ protected function buildOptionParser(ConsoleOptionParser $parser): ConsoleOption */ public function initialize(): void { + /** @var array $config */ $config = (array)Configure::read('ChangeLog'); $this->setConfig($config); } @@ -150,7 +151,9 @@ function ($item) use ($major) { */ protected function fetchPrs(string $from): array { - $client = new Client((array)$this->getConfig('client')); + /** @var array $config */ + $config = (array)$this->getConfig('client'); + $client = new Client($config); $query = [ 'q' => sprintf('is:pr draft:false repo:bedita/bedita merged:>%s', $from), 'sort' => '-closed',