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
5 changes: 2 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.4.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.2, 8.3, 8.4]
php: [8.2, 8.3, 8.4, 8.5]
exclude:
- os: windows-latest
php: [8.1, 8.2, 8.4]
php: [8.2, 8.3, 8.5]

name: P${{ matrix.php }} - ${{ matrix.os }}

Expand All @@ -25,7 +25,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, soap, intl, iconv, fileinfo
coverage: none
coverage: xdebug

- name: Setup problem matchers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3]
php: [8.4]
stability: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
]);

return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
])
->setFinder($finder);
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.0 - 2025-11-23
- Welcome to PHP 8.5
- Upgrading to PHPstan new rules (offsetAccess)

## 1.1.4 - 2025-04-25
- Adding `fmean()` method for computing the arithmetic mean with float numbers.

Expand Down
17 changes: 8 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
}
],
"require": {
"php": "^8.1|^8.2|^8.3|^8.4"
"php": "^8.2|^8.3|^8.4"
},
"require-dev": {
"laravel/pint": "^1.18",
"pestphp/pest": "^2.0",
"friendsofphp/php-cs-fixer": "^3.65",
"phpstan/phpstan": "^2",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.0",
"rector/rector": "^2"
},
"autoload": {
Expand All @@ -34,9 +35,9 @@
}
},
"scripts": {
"format": "vendor/bin/pint",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/php-cs-fixer fix",
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-text",
"static-code": "vendor/bin/phpstan analyse -c phpstan.neon",
"rector-dry-run": "rector process --dry-run",
"rector": "rector process",
Expand All @@ -48,9 +49,7 @@
},
"config": {
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
"allow-plugins": {}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon

parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src
- tests
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
executionOrder="random"
Expand All @@ -13,7 +13,7 @@
>
<testsuites>
<testsuite name="HiFolks Test Suite">
<directory>tests</directory>
<directory suffix=".php">tests</directory>
</testsuite>
</testsuites>
<coverage>
Expand Down
3 changes: 0 additions & 3 deletions pint.json

This file was deleted.

24 changes: 0 additions & 24 deletions tests/ArchTest.php

This file was deleted.

10 changes: 0 additions & 10 deletions tests/Datasets/Input.php

This file was deleted.

Loading