All notable changes to php-code-search
will be documented in this file.
- update helper function names to avoid issues when running in a Laravel application, thanks to @Hypnopompia for reporting the issue.
- fix warnings in PHP 8.1, closes #31
- various bug fixes, code cleanup
- fix nullable parameter type bug
- fix another bug with resolving static calls
- fix bug with resolving static method call names
- fix nested array bug in
Arr::matchesAny()
- add support for class definition searches using
classes()
- internal: significant refactoring
- add support for function definition searches using
functions()
- require
permafrost-dev/code-snippets
v1.2.0+ - update
composer.json
keywords
static()
supports searching for static property accesses likeSomeClass::$myProperty
ormyProperty
- major internal refactoring of nodes
- use latest version of
code-snippets
- implement multi-line highlighting for code snippets
- fix typehint issue
- use the
permafrost-dev/code-snippets
package
- add
getLineNumber
helper method to theCodeSnippet
class
- fix additional issues with node names
- fix issue with function call node names
- all function call, static method call, method call nodes have an
args
property containing the value node(s) of the parsed arguments. - assignment nodes now have a
value
property andvalue()
method. - strings and numbers are converted to
StringNode
andNumberNode
nodes, respectively. - most values converted to Node classes that implement either
ResultNode
,ValueNode
, or both. - operations (addition, concat, etc.) converted to Node classes that implement
OperationNode
. - fixed several bugs related to non-matches being returned as matches.
- fix issues with
Assignment
nodes
- fix issues with
Array
,ArrayItem
andArrayDimFetch
nodes
- internal refactoring
- rename
FunctionCallLocation
toGenericCodeLocation
and remove the name property
- allow searching for static method calls like
MyClass
orMyClass::someMethod
- add
ResultNode
class - add
node
property toSearchResult
class
- minor fix to method searching
- minor fix to variable searching
- add
methods
method - add
variables
method
- fix function search feature
- add
searchCode
method
- add
filename
property toFile
class
- add
file
property toSearchResult
class
- initial release