From 1b4208b05cc7dc74e60556b69ac3359904d9fd20 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Tue, 5 Nov 2019 14:17:46 +0100 Subject: [PATCH] Fix tests on PHP < 7.4 --- phpunit.xml | 1 + tests/Classes/TypedProperties.php | 14 ++++++++++++++ tests/ReflectionToolsTest.php | 14 +------------- 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 tests/Classes/TypedProperties.php diff --git a/phpunit.xml b/phpunit.xml index 0be108f..7df9209 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,6 +3,7 @@ tests + tests/Classes diff --git a/tests/Classes/TypedProperties.php b/tests/Classes/TypedProperties.php new file mode 100644 index 0000000..b423aaa --- /dev/null +++ b/tests/Classes/TypedProperties.php @@ -0,0 +1,14 @@ += 0) { - class TypedProperties { - /** - * @var int|string - */ - public $a; - - public string $b; - - public ?\PDO $c; - } -}