Skip to content

Commit 91cd562

Browse files
committed
Fixes dynamic property deprecations
1 parent 2be565f commit 91cd562

File tree

58 files changed

+129
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+129
-4
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
tests:
12-
name: PHP ${{ matrix.php }} / ${{ matrix.dependency-version }}
12+
name: PHP ${{ matrix.php }}
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
@@ -37,10 +37,41 @@ jobs:
3737
uses: actions/cache@v2
3838
with:
3939
path: ${{ steps.composer-cache.outputs.dir }}
40-
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
40+
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('composer.json') }}
4141

4242
- name: Install dependencies
4343
run: composer update --prefer-dist --no-interaction
4444

4545
- name: Running unit tests
4646
run: php vendor/bin/phpunit --configuration tests-resources/phpunit.dist.xml --testsuite unit
47+
48+
tests-rc:
49+
name: PHP ${{ matrix.php }}
50+
runs-on: ubuntu-latest
51+
strategy:
52+
matrix:
53+
php:
54+
- 8.2
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v2
58+
59+
- name: Setup PHP
60+
uses: shivammathur/setup-php@v2
61+
with:
62+
php-version: ${{ matrix.php }}
63+
64+
- id: composer-cache
65+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
66+
67+
- name: Cache Composer dependencies
68+
uses: actions/cache@v2
69+
with:
70+
path: ${{ steps.composer-cache.outputs.dir }}
71+
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('composer.json') }}
72+
73+
- name: Install dependencies
74+
run: composer update --prefer-dist --no-interaction --ignore-platform-req=PHP
75+
76+
- name: Running unit tests
77+
run: php vendor/bin/phpunit --configuration tests-resources/phpunit.dist.xml --testsuite unit

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
7+
### Fixed
8+
- dynamic property deprecations
79

810
## [3.0.6] - 2022-03-28
911
### Fixed

build/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include $(CURDIR)/php-7.3/Makefile
77
include $(CURDIR)/php-7.4/Makefile
88
include $(CURDIR)/php-8.0/Makefile
99
include $(CURDIR)/php-8.1/Makefile
10+
include $(CURDIR)/php-8.2/Makefile
1011

1112
help:
1213
@grep -hE '^[a-zA-Z0-9_.-]+:.*?## .*$$' $(MAKEFILE_LIST) \
@@ -24,6 +25,7 @@ test: ## test all against all php images
2425
$(MAKE) test-php-7.4
2526
$(MAKE) test-php-8.0
2627
$(MAKE) test-php-8.1
28+
$(MAKE) test-php-8.2
2729

2830
test-unit: ## test unit suite against all php images
2931
$(MAKE) test-suite-php-7.0 SUITE=unit
@@ -33,5 +35,6 @@ test-unit: ## test unit suite against all php images
3335
$(MAKE) test-suite-php-7.4 SUITE=unit
3436
$(MAKE) test-suite-php-8.0 SUITE=unit
3537
$(MAKE) test-suite-php-8.1 SUITE=unit
38+
$(MAKE) test-suite-php-8.2 SUITE=unit
3639

3740
.DEFAULT_GOAL := help

build/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,11 @@ services:
4949
context: php-8.1
5050
volumes:
5151
- ..:/app
52+
network_mode: host
53+
54+
php-8.2:
55+
build:
56+
context: php-8.2
57+
volumes:
58+
- ..:/app
5259
network_mode: host

build/php-8.2/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM composer:latest as composer
2+
FROM php:8.2-rc-cli-alpine
3+
4+
RUN apk update && \
5+
apk upgrade && \
6+
apk add --no-cache \
7+
autoconf \
8+
g++ \
9+
make \
10+
linux-headers
11+
12+
RUN pecl install xdebug-3.2.0RC2 && \
13+
pecl clear-cache && \
14+
docker-php-ext-enable xdebug
15+
16+
COPY --from=composer /usr/bin/composer /usr/bin/composer
17+
18+
WORKDIR /app/

build/php-8.2/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: prepare-php-8.2 test-php-8.2 test-suite-php-8.2
2+
3+
prepare-php-8.2: ## load dependencies with php 8.2
4+
docker-compose run -T php-8.2 /usr/bin/composer update --ignore-platform-req=PHP
5+
6+
test-php-8.2: prepare-php-8.2 ## run tests against php 8.2
7+
docker-compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
8+
9+
test-suite-php-8.2: prepare-php-8.2 ## run suite tests against php 8.2, ex: make test-suite-php-8.2 SUITE="unit"
10+
docker-compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"require": {
19-
"php": "^7 || ~8.0 || ~8.1",
19+
"php": "^7 || ~8.0 || ~8.1 || ~8.2",
2020
"ext-json": "*",
2121
"psr/log": "^1 || ^2 || ^3",
2222
"psr/http-message": "^1",

src/Feature/Blacklist/Bag/CreateBlacklistedPhoneNumberBag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @api
1111
* @property DateTimeInterface $expireAt
1212
*/
13+
#[\AllowDynamicProperties]
1314
class CreateBlacklistedPhoneNumberBag
1415
{
1516
/** @var string */

src/Feature/Blacklist/Bag/DeleteBlacklistedPhoneNumberBag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/**
88
* @api
99
*/
10+
#[\AllowDynamicProperties]
1011
class DeleteBlacklistedPhoneNumberBag
1112
{
1213
/** @var string */

src/Feature/Blacklist/Bag/FindBlacklistedPhoneNumbersBag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @api
1111
* @property string $q
1212
*/
13+
#[\AllowDynamicProperties]
1314
class FindBlacklistedPhoneNumbersBag
1415
{
1516
use PaginationBag;

0 commit comments

Comments
 (0)