Skip to content

Commit 2e8ca7c

Browse files
committed
Fixed CI build
1 parent 58e9321 commit 2e8ca7c

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

lib/Phpfastcache/Config/Config.php

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@
1616

1717
namespace Phpfastcache\Config;
1818

19-
\class_alias(ConfigurationOption::class, \Phpfastcache\Config\Config::class);
20-
\trigger_error(
21-
\sprintf(
22-
'%s class is deprecated and will be removed in v10, use %s instead.',
23-
\Phpfastcache\Config\Config::class,
24-
ConfigurationOption::class
25-
),
26-
\E_USER_DEPRECATED
27-
);
19+
/**
20+
* @deprecated This class is deprecated and will be removed in v10, use ConfigurationOption instead
21+
*/
22+
class Config extends ConfigurationOption
23+
{
24+
public function __construct(array $parameters = [])
25+
{
26+
\trigger_error(
27+
\sprintf(
28+
'%s class is deprecated and will be removed in v10, use %s instead.',
29+
self::class,
30+
ConfigurationOption::class
31+
),
32+
\E_USER_DEPRECATED
33+
);
34+
parent::__construct($parameters);
35+
}
36+
}

phpstan.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ parameters:
1414
-
1515
message: '#Cannot assign offset (.*) to string|Offset (.*) on string#' # Issue in arangodb/arangodb-php => https://github.com/arangodb/arangodb-php/issues/293
1616
path: lib/Phpfastcache/Drivers/Arangodb/Driver.php
17-
-
18-
message: '#(.*)class is deprecated and will be removed in v10(.*)#'
19-
path: lib/Phpfastcache/Config/Config.php

phpstan_lite.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ parameters:
88
- lib/Phpfastcache/Drivers/*/Config.php
99
ignoreErrors:
1010
- '#PHPDoc tag @(.*)#' # (Really) Annoying PHPDoc tag issues...
11-
-
12-
message: '#(.*)class is deprecated and will be removed in v10(.*)#'
13-
path: lib/Phpfastcache/Config/Config.php

0 commit comments

Comments
 (0)