Skip to content

Commit

Permalink
Add support for typed class constants in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jul 1, 2023
1 parent 78d98e5 commit 3906bcc
Show file tree
Hide file tree
Showing 10 changed files with 248 additions and 190 deletions.
56 changes: 16 additions & 40 deletions Zend/zend_attributes.stub.php
Expand Up @@ -5,46 +5,22 @@
#[Attribute(Attribute::TARGET_CLASS)]
final class Attribute
{
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_CLASS
*/
const TARGET_CLASS = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_FUNCTION
*/
const TARGET_FUNCTION = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_METHOD
*/
const TARGET_METHOD = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_PROPERTY
*/
const TARGET_PROPERTY = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_CLASS_CONST
*/
const TARGET_CLASS_CONSTANT = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER
*/
const TARGET_PARAMETER = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_TARGET_ALL
*/
const TARGET_ALL = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ATTRIBUTE_IS_REPEATABLE
*/
const IS_REPEATABLE = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_CLASS */
const int TARGET_CLASS = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_FUNCTION */
const int TARGET_FUNCTION = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_METHOD */
const int TARGET_METHOD = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_PROPERTY */
const int TARGET_PROPERTY = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_CLASS_CONST */
const int TARGET_CLASS_CONSTANT = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER */
const int TARGET_PARAMETER = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_TARGET_ALL */
const int TARGET_ALL = UNKNOWN;
/** @cvalue ZEND_ATTRIBUTE_IS_REPEATABLE */
const int IS_REPEATABLE = UNKNOWN;

public int $flags;

Expand Down
18 changes: 9 additions & 9 deletions Zend/zend_attributes_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Zend/zend_exceptions_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3906bcc

Please sign in to comment.