History log of /PHP-Parser/lib/PhpParser/Node/Stmt/ClassMethod.php (Results 26 – 50 of 51)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


# a6846e3b 28-Apr-2017 Nikita Popov

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node constructors still accepts strings and will implicitly create
an Identifier wrapper. Identifier implement __toString(), so that
outside of strict-mode many things continue to work without changes.

show more ...


# fba61390 24-Apr-2017 Nikita Popov

Use null-coalesce operator


# 9dc93aaf 22-Apr-2017 Andreev Sergey

Add ClassMethod::isMagic() method


# 901b895c 19-Apr-2017 Nikita Popov

Fix spelling of VISIBILITY_MODIFIER_MASK


Revision tags: v3.0.5, v3.0.4, v3.0.3
# bfea338d 25-Jan-2017 Nikita Popov

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter ann

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter annotations.)

show more ...


# e3b87f40 24-Jan-2017 Matthew Brown

Add non-void return types


# ced914a3 19-Jan-2017 Nikita Popov

Update doc comments to be more specific

Now $stmts arrays really only contains Stmt nodes.


# 0c9c8d58 19-Jan-2017 Nikita Popov

Drop deprecated $type subnodes

These have been replaced by $flags in 3.0


Revision tags: v3.0.2
# 030de805 05-Dec-2016 Matthew Brown

Add NullableType to types of properties/args that offer it (#323)


Revision tags: v3.0.1, v3.0.0
# bcdfb703 23-Nov-2016 Nikita Popov

Cleanup imports

Thanks PhpStorm :)


Revision tags: v3.0.0beta2
# caa5c0cc 08-Oct-2016 Nikita Popov

Graceful handling for "special" errors

Nearly all special errors are now handled gracefully, i.e. the
parser will be able to continue after encountering them. In some
cases the assoc

Graceful handling for "special" errors

Nearly all special errors are now handled gracefully, i.e. the
parser will be able to continue after encountering them. In some
cases the associated error range has been improved using the new
end attribute stack.

To achieve this the error handling code has been moved out of the
node constructors and into special methods in the parser.

show more ...


Revision tags: v3.0.0beta1, v2.1.1, v3.0.0alpha1
# 18129480 25-Jul-2016 Nikita Popov

Rename $type subnode to $flags

Type makes it sound like a type-hint, and on a number of other nodes
$type is used for exactly that. Use $flags to hold modifiers instead.


Revision tags: v2.1.0, v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# 1d62e9d8 05-Jul-2015 Nikita Popov

Fix implicit visibility for properties as well

Also switch to using PPP mask.


# e3195c24 05-Jul-2015 Lisachenko Alexander

Fix public modifier check for ClassMethod node


# 7434a682 05-Jul-2015 Nikita Popov

Fix implicit visibility for properties as well

Also switch to using PPP mask.


# 0fbb5f90 05-Jul-2015 Lisachenko Alexander

Fix public modifier check for ClassMethod node


# 42e368e9 02-Jul-2015 Nikita Popov

Fix returnType typehints

Fixes issues #207


# bb2c5303 01-Jun-2015 Suralc

Add a FunctionLike interface to Methods, Functions and Closures.

The elements listed above share common elements like parameters, possible return types and bodies.


# 29b9015f 02-May-2015 Nikita Popov

Drop support for old Node format


Revision tags: v1.3.0, v1.2.2, v1.2.1, v1.2.0
# 3ad0d4b3 12-Mar-2015 Nikita Popov

Add support for return type declarations [PHP 7]

This adds an additional "returnType" subnode to Stmt\Function_,
Stmt\ClassMethod and Expr\Closure, as well as the corresponding
suppo

Add support for return type declarations [PHP 7]

This adds an additional "returnType" subnode to Stmt\Function_,
Stmt\ClassMethod and Expr\Closure, as well as the corresponding
support in the name resolver and pretty printer.

show more ...


# a2d7e897 28-Feb-2015 Nikita Popov

Use real properties for storing subnodes

Instead of storing subnodes in a subNodes dictionary, they are
now stored as simple properties. This requires declarating the
properties, ass

Use real properties for storing subnodes

Instead of storing subnodes in a subNodes dictionary, they are
now stored as simple properties. This requires declarating the
properties, assigning them in the constructor, overriding
the getSubNodeNames() method and passing NULL to the first argument
of the NodeAbstract constructor.

[Deprecated: It's still possible to use the old mode of operation
for custom nodes by passing an array of subnodes to the constructor.]

The only behavior difference this should cause is that getSubNodeNames()
will always return the original subnode names and skip any additional
properties that were dynamically added. E.g. this means that the
"namespacedName" node added by the NameResolver visitor is not treated
as a subnode, but as a dynamic property instead.

This change improves performance and memory usage.

show more ...


# 73cace36 02-Mar-2015 Thomas Ruiz

Implicit public should not generate as explicit public


Revision tags: v1.1.0
# 0f69f12b 13-Nov-2014 nikic

Use "public" visibility when not explicitly given

Fixes issue #143


Revision tags: v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1
# f5be0d30 22-Mar-2014 nikic

Guarantee that subnodes are always in the right order


123