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-snippetsv1.2.0+ - update
composer.jsonkeywords
static()supports searching for static property accesses likeSomeClass::$myPropertyormyProperty- 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-snippetspackage
- add
getLineNumberhelper method to theCodeSnippetclass
- fix additional issues with node names
- fix issue with function call node names
- all function call, static method call, method call nodes have an
argsproperty containing the value node(s) of the parsed arguments. - assignment nodes now have a
valueproperty andvalue()method. - strings and numbers are converted to
StringNodeandNumberNodenodes, 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
Assignmentnodes
- fix issues with
Array,ArrayItemandArrayDimFetchnodes
- internal refactoring
- rename
FunctionCallLocationtoGenericCodeLocationand remove the name property
- allow searching for static method calls like
MyClassorMyClass::someMethod - add
ResultNodeclass - add
nodeproperty toSearchResultclass
- minor fix to method searching
- minor fix to variable searching
- add
methodsmethod - add
variablesmethod
- fix function search feature
- add
searchCodemethod
- add
filenameproperty toFileclass
- add
fileproperty toSearchResultclass
- initial release