phpstan skills

20 tagged phpstan, measured the same way as everything else here.

Browse within: github 19woocommerce 19wordpress 19

wp-database

01

mralaminahamed/wp-dev-skills

Skill Claude CodeCodex

Use when a WordPress plugin needs a custom database table — creating with dbDelta (strict SQL format: two spaces before PRIMARY KEY, no trailing comma), writing versioned upgrade routines with versioncompare and registeractivationhook, querying with $wpdb prepared statements (prepare, insert, update, delete, getrow…

27 1mo ago A 283 tokens original MIT

wp-github-flow

02

mralaminahamed/wp-dev-skills

Skill Claude CodeCodex

Use when shipping work through GitHub — fixing a GitHub issue by URL/number, or committing and PR-ing uncommitted working-tree changes. Covers resolving ISSUEREPO vs CODEREPO, grouping changes into scoped conventional commits (type(scope): summary), branching from fresh origin/base, discovering labels via gh label…

27 1mo ago A 290 tokens original MIT

wp-plugin-testing

03

mralaminahamed/wp-dev-skills

Skill Claude CodeCodex

Use when writing or setting up tests for a WordPress plugin — PHPUnit integration tests using WPUnitTestCase with the WP test suite (bin/install-wp-tests.sh, phpunit.xml.dist, tests/bootstrap.php), unit tests with Brain Monkey (when() / expect() / Mockery) or WPMock, test factories (factory()->post->create()…

27 1mo ago A 340 tokens original MIT

phpstan-trace

04

kayw-geek/phpstan-type-trace

Skill Claude CodeCodex

Use when a PHPStan/Larastan type error is NON-TRIVIAL to fix by reading the source alone — the variable crosses multiple scopes (closure, callback, helper), is shaped by a third-party extension (larastan Eloquent magic attributes, webmozart/assert, doctrine generics, dynamic-return-type extensions), lives in a method…

20 3mo ago C 143 tokens original MIT