Gabriel Caruso
|
68d07c4662
|
[CS] New line in the end of file
|
2018-01-13 16:08:26 +01:00 |
|
Gabriel Caruso
|
8fae99aafe
|
[CS] Remove spaces
|
2018-01-13 16:08:25 +01:00 |
|
Gabriel Caruso
|
7f72c84122
|
[CS] Open class brackets in new line
|
2018-01-13 16:03:55 +01:00 |
|
Nikita Popov
|
b507fa43da
|
Ensure names are not empty
|
2017-12-01 18:13:55 +01:00 |
|
TomasVotruba
|
b58157f024
|
add strict_types to tests + fix explode type
|
2017-11-03 13:24:19 +01:00 |
|
Nikita Popov
|
57bc42517b
|
Move IdentifierTest where it belongs
Ooops...
|
2017-10-06 15:07:35 +02:00 |
|
Nikita Popov
|
65de924493
|
Add Identifier::toString()
For symmetry with the Name API.
Also add some missing unit tests.
|
2017-10-03 20:57:48 +02:00 |
|
TomasVotruba
|
af12807451
|
[cs] apply same to tests
|
2017-08-13 21:14:28 +02:00 |
|
Nikita Popov
|
73dc35cbbd
|
Allow null in ClassMethod::getStmts()
|
2017-05-07 19:56:14 +02:00 |
|
Nikita Popov
|
a32e3797d4
|
Generate PHP 7 type annotations
|
2017-04-28 21:40:59 +02:00 |
|
Nikita Popov
|
56b810e91d
|
Add getShortName() API
PHP's name resolution rules are f'ing complicated.
|
2017-04-28 17:10:30 +02:00 |
|
Ekin
|
3c44785e82
|
Bump phpunit version (#381)
|
2017-04-27 18:14:07 +02:00 |
|
Nikita Popov
|
8635365a30
|
Fix some typing issues
|
2017-04-26 21:50:40 +02:00 |
|
Andreev Sergey
|
9dc93aafaa
|
Add ClassMethod::isMagic() method
|
2017-04-23 13:54:17 +02:00 |
|
Nikita Popov
|
bfea338d36
|
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.)
|
2017-01-26 00:16:54 +01:00 |
|
Nikita Popov
|
0c9c8d58ab
|
Drop deprecated $type subnodes
These have been replaced by $flags in 3.0
|
2017-01-19 21:00:44 +01:00 |
|
Nikita Popov
|
fa7357b483
|
Represent empty Name::slice() using null
Instead of a Name([]) dummy value, that is invalid in other
contexts.
|
2016-10-22 17:02:38 +02:00 |
|
Nikita Popov
|
91cb82d3d2
|
Explicitly support Name copy construction
It already worked beforehand by accident ... make clear it's
actually supported.
|
2016-10-22 16:41:58 +02:00 |
|
Nikita Popov
|
7672b974ff
|
Remove Name::append() and Name::prepend()
|
2016-10-22 00:25:15 +02:00 |
|
Nikita Popov
|
a910f6a247
|
Remove $separator arg from Name::toString()
|
2016-10-09 12:45:15 +02:00 |
|
Nikita Popov
|
b740076ab1
|
Remove deprecated Name::set*() methods
|
2016-07-25 14:50:37 +02:00 |
|
Nikita Popov
|
c9fea2ef67
|
Extend Name::slice() to support negative length+offset
|
2016-07-25 14:47:24 +02:00 |
|
Nikita Popov
|
18129480ae
|
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.
|
2016-07-25 13:33:19 +02:00 |
|
Nikita Popov
|
5ea2a76d80
|
PHP 7.1: Class constant visibility support
|
2016-07-05 23:01:06 +02:00 |
|
Nikita Popov
|
0ef15c111a
|
Merge branch '1.x'
|
2015-07-14 17:08:28 +02:00 |
|
Nikita Popov
|
d341d94976
|
Add ClassLike::getMethod($name)
To allow getting individual method with a given name.
|
2015-07-14 17:07:45 +02:00 |
|
Nikita Popov
|
0265c28e6e
|
Switch NameResolver resolve methods to be immutable
To make it theoretically possible to expose this as API.
Add slice() method to Name to allow this. Deprecate existing mutable
Name APIs.
|
2015-07-12 23:56:57 +02:00 |
|
Nikita Popov
|
1d62e9d8cc
|
Fix implicit visibility for properties as well
Also switch to using PPP mask.
|
2015-07-05 20:17:52 +02:00 |
|
Lisachenko Alexander
|
2a3bc608dc
|
Add broken test for implicit public nodes
|
2015-07-05 20:17:49 +02:00 |
|
Nikita Popov
|
7434a682e5
|
Fix implicit visibility for properties as well
Also switch to using PPP mask.
|
2015-07-05 20:16:21 +02:00 |
|
Lisachenko Alexander
|
5e6627c895
|
Add broken test for implicit public nodes
|
2015-07-05 20:10:47 +02:00 |
|
Nikita Popov
|
1a627872f0
|
Rename nodes for compat with PHP 7
The old names will still be available on PHP 5.x.
|
2015-03-20 21:49:38 +01:00 |
|
Tom Rochette
|
1366e833a1
|
Move getMethods() to new ClassLike node
Class_, Interface_ and Trait_ extend the ClassLike node, which
provides the getMethods() method.
|
2015-01-31 22:59:38 +01:00 |
|
nikic
|
0f69f12b94
|
Use "public" visibility when not explicitly given
Fixes issue #143
|
2014-11-13 20:21:21 +01:00 |
|
nikic
|
66fd29cb58
|
Use stricter assertions where possible
|
2014-09-30 20:38:09 +02:00 |
|
nikic
|
70077039b4
|
Add Scalar\MagicConst->getName()
Return magic constant name, e.g. __CLASS__.
Resolves #95.
|
2014-02-21 18:16:18 +01:00 |
|
nikic
|
f82862ec9c
|
Port library to use namespaces, with BC for old names
|
2014-02-06 20:29:35 +01:00 |
|