Filter
Exclude
Time range
-
Near
A new #phpparser release dropped. It contains a opt-in improvement for NodeConnectingVisitor and ParentConnectingVisitor to make it use WeakReferences to assist #php garbage collector. This might be useful for you in case you use the lib on big ASTs to reclaim memory.
1
4
142
Antes de chegar na ideia do PhpParser, tentei usar uma abordagem mais ligada a RAG e fazer o embedding do código inteiro (repositório inteiro) Mas o resultados da IA ficavam bem ruins 😢
3
265
Ainda estou em dúvida sobre com explicar como cheguei nesse CVE #bolhasec Mas envolve fazer parser de código com o PhpParser pra extrair regiões de código interessantes e pedir de uma LLM qualquer: "Identify high-risk broken authorization vulnerabilities in AJAX endpoints, focusing on: - Missing Capability Checks, etc"
1
2
23
3,111
PHPParser 5.x! #phperkaigi #a
2
311
13 Apr 2024
phpparserのastには;が含まれないのでphpのと少し差があるなあ #phpcon_odawara #kama
1
3
187
Access to an undefined property PhpParser\Node\Expr::$var. アクセストゥ アンディファインド プロパティ (5・7・5)
2
163
In Q1/2024 I #contributed to 26 #opensource projects a whopping 92 merged Pull Requests, mostly in my freetime. Highlights - 28 @phpstan - 2 @psalmphp - 7 #phpunit - 3 #betterreflection - 2 nikic #phpparser - 5 @rectorphp please consider sponsoring if you rely on this tools 👇
2
3
25
1,684
7 Feb 2024
PhpParser のメモリ使用量の大きな部分は NodeAbstract が配列として各種値を持つ attributes の部分で、大量の Node インスタンスを生かしたままメモリ上に持つ PHPStan のメモリ使用量にもかなり影響が大きいので、AST ノードを転写しつつ配列でなくプロパティで持つと結構省メモリになるのだろうな
1
2
356
22 Jul 2023
In the times of AI, having 100 % reliable code transformers is a rare and powerful skill. Learning #phpparser could be a hustle at start, but Abstract Syntax Tree will yield its fruits 😉 I've just updated the repository with node overview on how to make them with php-parser 4.16 ↓ 🥳️ github.com/rectorphp/php-par…
1
9
4,302
just started adding list-types to #phpparser and found a bug within my first PR to the repo. static analysis should be a tool used in CI in any project. I did the setup while working on it.
2
9
親の顔より見たPhpParser Node安心する #phpcon #phpcon2022 #track4
2
Du coup, qui s'amuse avec l'AST et PhpParser dans le coin ?

Replying to @pockystar
Nuit bien trop courte à venir mais hey, on va modifier des fichiers de config Symfony à grand coup d'AST maintenant :D (c'est très bourrin, c'est pas encore garantie que ça fonctionne sur des trucs plus avancés)
2
1
15 May 2022
There is now proposal to #phpparsergithub.com/nikic/PHP-Parser/… What do you think?

For php-parser, #phpstan and @rectorphp fans: What if we have a single interface for a node with iterable stmts?
3
Replying to @freekmurze
We use grumphp with the phpparser task and a visitor to blacklist specific functions: forbidden_function_calls: blacklist: ['var_dump', 'print_r', 'dump', 'dd', 'debug']
2
1
18
17 Jul 2020
We use this testing approach in Rector since the beggining Thanks @nikita_ppv for introducing us to this approach in #phpparser Maintainining 520 Rector rules would not be possible without it :)
17 Jul 2020
New Post on #php 🐘 blog: The most Effective Test I found in 7 years of Testing tomasvotruba.com/blog/2020/0…
3
Check post on 🐘 blog: How to change any PHP code with #phpparser in 50 lines? tomasvotruba.com/blog/2017/1…
5
15
6 Jun 2019
コード断片コピーして、クリップボード内容powershell経由でPHPにパイプしてPhpParserで整形変換してclipへパイプするバッチファイルをPhpStormから叩く、というのを試した感想としては、PhpStormの方でPHPによるコード整形サポートしないかなあ、だった
2
31 Aug 2018
Added PhpParser 4 and Psalm support in our latest version. Check it out at github.com/phpro/grumphp/rel…

4
5