[phpstorm-stubs] fix final modifier for classes
This commit is contained in:
parent
6b7f3ed665
commit
d21b6679e2
|
@ -673,8 +673,9 @@ interface Countable
|
|||
* object which does not prevent the object from being destroyed.
|
||||
* They are useful for implementing cache like structures.
|
||||
* @link https://www.php.net/manual/en/class.weakreference.php
|
||||
* @since 7.4
|
||||
*/
|
||||
class WeakReference
|
||||
final class WeakReference
|
||||
{
|
||||
/**
|
||||
* This method exists only to disallow instantiation of the WeakReference
|
||||
|
|
|
@ -392,7 +392,7 @@ class DOMNode
|
|||
* when an operation is impossible to perform for logical reasons.
|
||||
* @link https://php.net/manual/en/class.domexception.php
|
||||
*/
|
||||
class DOMException extends Exception
|
||||
final class DOMException extends Exception
|
||||
{
|
||||
/**
|
||||
* @link https://php.net/manual/en/class.domexception.php#domexception.props.code
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace FTP;
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class Connection {}
|
||||
final class Connection {}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class GdFont {}
|
||||
final class GdFont {}
|
||||
|
|
|
@ -450,7 +450,7 @@ define('MHASH_XXH128', 41);
|
|||
/**
|
||||
* @since 7.2
|
||||
*/
|
||||
class HashContext
|
||||
final class HashContext
|
||||
{
|
||||
private function __construct() {}
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace IMAP;
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class Connection {}
|
||||
final class Connection {}
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace LDAP;
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class Connection {}
|
||||
final class Connection {}
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace LDAP;
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class Result {}
|
||||
final class Result {}
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace LDAP;
|
|||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
class ResultEntry {}
|
||||
final class ResultEntry {}
|
||||
|
|
|
@ -12,7 +12,7 @@ use JetBrains\PhpStorm\Internal\TentativeType;
|
|||
/**
|
||||
* mysqli_sql_exception
|
||||
*/
|
||||
class mysqli_sql_exception extends RuntimeException
|
||||
final class mysqli_sql_exception extends RuntimeException
|
||||
{
|
||||
/**
|
||||
* The sql state with the error.
|
||||
|
|
|
@ -1069,6 +1069,15 @@
|
|||
},
|
||||
{
|
||||
"name": "ReflectionReference",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
8.0,
|
||||
8.1
|
||||
]
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
{
|
||||
"name": "fromArrayElement",
|
||||
|
@ -3299,6 +3308,45 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ReflectionGenerator",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
8.0,
|
||||
8.1
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ReflectionAttribute",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
7.1,
|
||||
7.2,
|
||||
7.3,
|
||||
7.4,
|
||||
8.0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "__PHP_Incomplete_Class",
|
||||
"problems": [
|
||||
{
|
||||
"description": "has wrong final modifier",
|
||||
"versions": [
|
||||
8.0,
|
||||
8.1
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"interfaces": [
|
||||
|
|
|
@ -553,6 +553,9 @@ define('XML_OPTION_SKIP_WHITE', 4);
|
|||
*/
|
||||
define('XML_SAX_IMPL', "libxml");
|
||||
|
||||
class XMLParser {}
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
final class XMLParser {}
|
||||
|
||||
// End of xml v.
|
||||
|
|
|
@ -526,7 +526,7 @@ function inflate_get_status(#[LanguageLevelTypeAware(["8.0" => "InflateContext"]
|
|||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
class InflateContext
|
||||
final class InflateContext
|
||||
{
|
||||
/**
|
||||
* Use inflate_init() instead
|
||||
|
@ -538,7 +538,7 @@ class InflateContext
|
|||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
class DeflateContext
|
||||
final class DeflateContext
|
||||
{
|
||||
/**
|
||||
* Use deflate_init() instead
|
||||
|
|
Loading…
Reference in New Issue