Skip to content

Commit 5fcc4f3

Browse files
committed
Improve deprecation warnings
1 parent f920021 commit 5fcc4f3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
"php" : "^8.1"
4747
},
4848
"require-dev": {
49-
"friendsofphp/php-cs-fixer": "^3.64.0",
50-
"phpstan/phpstan": "^1.12.11",
49+
"friendsofphp/php-cs-fixer": "^3.65.0",
50+
"phpstan/phpstan": "^1.12.12",
5151
"phpstan/phpstan-deprecation-rules": "^1.2.1",
5252
"phpstan/phpstan-phpunit": "^1.4.1",
5353
"phpstan/phpstan-strict-rules": "^1.6.1",
54-
"phpunit/phpunit": "^10.5.15 || ^11.4.3",
54+
"phpunit/phpunit": "^10.5.15 || ^11.5.0",
5555
"symfony/var-dumper": "^6.4.15"
5656
},
5757
"autoload": {

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ parameters:
1010
ignoreErrors:
1111
- '#^Generator expects value type array#'
1212
- '#Attribute class Deprecated does not exist.#'
13+
- '#^Fetching class constant#'
14+
- '#has typehint with deprecated enum League\\Period\\InitialDatePresence#'

src/InitialDatePresence.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111

1212
namespace League\Period;
1313

14-
/*
15-
* @deprecated since version 5.2.1
16-
*
17-
* Presence Enum
14+
/**
15+
* Presence Enum.
1816
*
1917
* @package League.period
2018
* @author Ignace Nyamagana Butera <nyamsprod@gmail.com>

0 commit comments

Comments
 (0)