Skip to content

Commit

Permalink
Support PHP 8.3 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tspencer244 authored Aug 29, 2024
1 parent 207e2dd commit 0f15227
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ executors:
php80:
docker:
- image: cimg/php:8.0
resource_class: small
php81:
docker:
- image: cimg/php:8.1
resource_class: small
php82:
docker:
- image: cimg/php:8.2
resource_class: small
php83:
docker:
- image: cimg/php:8.3
resource_class: small

jobs:
test:
Expand All @@ -33,4 +43,4 @@ workflows:
- test:
matrix:
parameters:
php-executor: [php80, php81]
php-executor: [php80, php81, php82, php83]
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v2.7.2] - 2024-08-28

### Added

- Added support for PHP 8.2.
- Added support for PHP 8.3.

## [v2.7.1] - 2023-03-08

### Added

- Added support for PHP 8.0.

## [v2.7.0] - 2023-02-20

### Added

Expand All @@ -30,4 +43,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed support for PHP 7.4.
- Removed support for PHP 8.0.

[unreleased]: https://github.com/HealthEngineAU/Slim/compare/2.6.4...2.x
[v2.7.2]: https://github.com/HealthengineAU/Slim/compare/v2.7.1..v2.7.2
[v2.7.1]: https://github.com/HealthengineAU/Slim/compare/v2.7.0..v2.7.1
[v2.7.0]: https://github.com/HealthengineAU/Slim/compare/2.6.4..v2.7.0
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "~8.0.0 || ~8.1.0"
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
},
"autoload": {
"psr-4": { "Slim\\": "Slim" }
Expand Down
2 changes: 1 addition & 1 deletion 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="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
Expand Down
2 changes: 1 addition & 1 deletion tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function testGetDefaultConditions()
{
$property = new \ReflectionProperty('\Slim\Route', 'defaultConditions');
$property->setAccessible(true);
$property->setValue(array(
$property->setValue($property, array(
'id' => '\d+'
));

Expand Down
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

require_once __DIR__ . '/../vendor/autoload.php';

set_include_path(dirname(__FILE__) . '/../' . PATH_SEPARATOR . get_include_path());

// Set default timezone
Expand Down

0 comments on commit 0f15227

Please sign in to comment.