File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static function isBuiltinType(string $type): bool
26
26
}
27
27
28
28
29
- /** @deprecated use Nette\Utils\Validators::isClassKeyword() */
29
+ #[\Deprecated( ' use Nette\Utils\Validators::isClassKeyword() ' )]
30
30
public static function isClassKeyword (string $ name ): bool
31
31
{
32
32
return Validators::isClassKeyword ($ name );
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Strings
23
23
24
24
public const TrimCharacters = " \t\n\r\0\x0B\u{A0}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{200B}\u{2028}\u{3000}" ;
25
25
26
- /** @deprecated use Strings::TrimCharacters */
26
+ #[\Deprecated( ' use Strings::TrimCharacters ' )]
27
27
public const TRIM_CHARACTERS = self ::TrimCharacters;
28
28
29
29
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ public function isSimple(): bool
194
194
}
195
195
196
196
197
- /** @deprecated use isSimple() */
197
+ #[\Deprecated( ' use isSimple() ' )]
198
198
public function isSingle (): bool
199
199
{
200
200
return $ this ->simple ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ Assert::null($type->getSingleName());
105
105
Assert::false ($ type ->isClass ());
106
106
Assert::true ($ type ->isUnion ());
107
107
Assert::false ($ type ->isIntersection ());
108
- Assert::false ($ type ->isSingle ());
108
+ Assert::false ($ type ->isSimple ());
109
109
Assert::false ($ type ->isBuiltin ());
110
110
Assert::false ($ type ->isClassKeyword ());
111
111
@@ -175,6 +175,6 @@ Assert::null($type->getSingleName());
175
175
Assert::false ($ type ->isClass ());
176
176
Assert::true ($ type ->isUnion ());
177
177
Assert::false ($ type ->isIntersection ());
178
- Assert::false ($ type ->isSingle ());
178
+ Assert::false ($ type ->isSimple ());
179
179
Assert::false ($ type ->isBuiltin ());
180
180
Assert::false ($ type ->isClassKeyword ());
You can’t perform that action at this time.
0 commit comments