Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
90e2014
Works without warnings in PHP 8.3
Ostico Oct 14, 2025
5e27d90
Save
Ostico Oct 15, 2025
c19661e
Tested for PHP 8.3
Ostico Oct 16, 2025
b775f07
Phpstan lvl 7
Ostico Oct 17, 2025
1ed1987
Removed TODO for deprecation
Ostico Oct 17, 2025
b423a5b
Support PHP 8.1+
Ostico Oct 17, 2025
a6fdb9f
Updated ChangeLog
Ostico Oct 17, 2025
1a5449d
Updated ChangeLog
Ostico Oct 17, 2025
b47bc09
Updated ChangeLog
Ostico Oct 17, 2025
37dbe76
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
eea2527
Updated Ip validaiton tests
Ostico Oct 17, 2025
092de66
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
a2eaa5b
Removed test for PHP bug
Ostico Oct 17, 2025
4244ce5
Updated travis.yml
Ostico Oct 17, 2025
373faf9
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
52ddc94
Updated travis yml
Ostico Oct 17, 2025
4dde647
Updated travis.yml to support coverage
Ostico Oct 17, 2025
434cd87
Removed tests for php8.3 (bug)
Ostico Oct 17, 2025
5c5041d
Fix: PHP8.4
Ostico Oct 17, 2025
b80b7d5
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
3aa9ea6
Updated php matrix for tests
Ostico Oct 17, 2025
7a0747b
Fixed implicit nullable type hint definition
Ostico Oct 17, 2025
c293c08
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
6822db6
Removed deprecations for implicit nullable method type hints
Ostico Oct 17, 2025
c359547
Merge branch 'php8.3' into php8.1
Ostico Oct 17, 2025
37c32a8
Merge pull request #1 from matecat/php8.3
Ostico Oct 17, 2025
e76b2ea
Merge branch 'master' into php8.1
Ostico Oct 17, 2025
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
21 changes: 9 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
sudo: false

env:
global:
- XDEBUG_MODE=coverage

language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
- 8.1
- 8.2
- 8.3
- 8.4

matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true

before_script:
- composer install --prefer-dist

script:
- composer validate
- ./vendor/bin/phpunit
- ./vendor/bin/phpcs --standard=PSR2 --encoding=utf-8 -p src/ tests/
- ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG

## 3.0.0

### Features

- Support for PHP >= 8.1
- Dropped support for previous PHP versions
- Removed the "magical" way of inputting mask in DataCollections in favor of PHP 8 named arguments.
- Removed use of 404/405 "routes" (deprecated in previous versions). Use `$klein->onHttpError()` instead.
- Removed "magical" callback behavior in favor of PHP 8.3 named arguments. Now the function accepts an optional string path as the first parameter and a NOT optional callback.
- Removed "magical" markdown behavior. Now the function accepts a string and an optional array of values.
- Removed "magical" markdown behavior. Now the function accepts a string and an optional array of values.
- Removed "magical" behavior of `ServiceProvider::flash()` method. Now the function accepts a string and an optional array of values.
- Updated PHPUnit to version 10

## 2.1.2

Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=8.1",
"ext-ctype": "*",
"ext-fileinfo": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"phpunit/php-code-coverage": "^2.2",
"squizlabs/php_codesniffer": "1.4.8"
"phpunit/phpunit": "^10",
"phpunit/php-code-coverage": "^10",
"squizlabs/php_codesniffer": "^4",
"phpstan/phpstan": "@stable"
},
"autoload": {
"psr-4": {
Expand Down
42 changes: 28 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="false"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnPhpunitDeprecations="true"
failOnPhpunitDeprecation="true"
failOnRisky="true"
failOnWarning="true"
>
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>

<testsuites>
<testsuite name="Klein Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
</phpunit>
<coverage
pathCoverage="true"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
</coverage>

</phpunit>
Loading