{"id":68,"date":"2026-10-19T09:00:00","date_gmt":"2026-10-19T07:00:00","guid":{"rendered":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/"},"modified":"2026-10-16T14:00:12","modified_gmt":"2026-10-16T12:00:12","slug":"a-verification-gate-for-ai-written-php-lint-phpstan-tests","status":"publish","type":"post","link":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/","title":{"rendered":"A verification gate for AI-written PHP: lint, PHPStan, tests"},"content":{"rendered":"<p>Hi folks,<\/p>\n<p>The dangerous thing about AI-written PHP is not that it is bad. It is that it <em>looks<\/em> good. Clean names, nice docblocks, a confident summary at the end: &#8220;Implemented the repository method and updated the tests.&#8221; And then a method is called that does not exist in your TYPO3 version, or the test was never run.<\/p>\n<p>I do not solve this with better prompts. I solve it with a gate: one command that must be green before anybody, human or agent, says &#8220;done&#8221;. This post shows the command and a Claude Code hook that enforces it.<\/p>\n<h2>What the gate checks<\/h2>\n<p>Four checks, from cheap to expensive:<\/p>\n<ol>\n<li><strong>Syntax<\/strong> with <code>php -l<\/code>. Catches broken files before slower tools choke on them.<\/li>\n<li><strong>Coding style<\/strong> with PHP-CS-Fixer in dry-run mode. It does not change anything, it only fails if something would change.<\/li>\n<li><strong>Static analysis<\/strong> with PHPStan. This is the most valuable one for AI code, because it finds calls to methods and classes that do not exist, wrong argument types and missing return types.<\/li>\n<li><strong>Tests<\/strong> with PHPUnit. Unit tests always, functional tests where the extension has them.<\/li>\n<\/ol>\n<p>None of this is new. What is new is who runs it. When an agent writes the code, the agent must run the gate too, and show the output.<\/p>\n<h2>Step 1: One Composer script<\/h2>\n<p>Put the checks into <code>composer.json<\/code> of the extension or project. Composer adds <code>vendor\/bin<\/code> to the <code>PATH<\/code> for scripts, and it stops at the first command that fails.<\/p>\n<pre><code class=\"language-json\">{\n    \"require-dev\": {\n        \"friendsofphp\/php-cs-fixer\": \"^3.64\",\n        \"phpstan\/phpstan\": \"^2.1\",\n        \"phpunit\/phpunit\": \"^11.5\"\n    },\n    \"scripts\": {\n        \"gate:lint\": \"find Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n1 php -l\",\n        \"gate:cs\": \"php-cs-fixer fix --dry-run --diff\",\n        \"gate:stan\": \"phpstan analyse --no-progress\",\n        \"gate:test\": \"phpunit -c Build\/phpunit\/UnitTests.xml\",\n        \"gate\": [\n            \"@gate:lint\",\n            \"@gate:cs\",\n            \"@gate:stan\",\n            \"@gate:test\"\n        ]\n    },\n    \"scripts-descriptions\": {\n        \"gate\": \"Lint, coding style, static analysis and tests. Must be green before done.\"\n    }\n}<\/code><\/pre>\n<p>The version constraints are examples; use what fits your PHP and TYPO3 versions. Inside DDEV, the whole gate is one line: <code>ddev composer gate<\/code>.<\/p>\n<p>A minimal <code>phpstan.neon<\/code> to start with:<\/p>\n<pre><code class=\"language-yaml\">parameters:\n  level: 6\n  paths:\n    - Classes\n    - Configuration\n    - Tests<\/code><\/pre>\n<p>Start at a level your existing code passes, then go up. A gate that is red from the beginning gets ignored, and then it is worth nothing. If you have old errors you cannot fix now, use a PHPStan baseline file, so that only <em>new<\/em> problems fail the gate.<\/p>\n<h2>Step 2: Tell the agent about it<\/h2>\n<p>The project instructions get one short rule:<\/p>\n<pre><code class=\"language-markdown\">## Definition of done\nRun `ddev composer gate` after changing PHP files. Paste the last lines of\nits output in your final message. If it is red, fix the cause; never weaken\na check, skip a test or add an ignore rule without asking.<\/code><\/pre>\n<p>The second sentence matters more than it looks. Without it, an agent under pressure may &#8220;fix&#8221; PHPStan by adding an ignore rule or &#8220;fix&#8221; a test by changing the expected value. Both make the gate green and the code wrong. Humans are tempted by the same shortcuts on a Friday afternoon, so this is not about blaming the model; it is about closing the door.<\/p>\n<h2>Step 3: A Stop hook that refuses to finish<\/h2>\n<p>Instructions are a request. A hook is a rule. Claude Code runs <code>Stop<\/code> hooks when the agent wants to end its turn. If the hook exits with code 2, Claude Code does not stop; it gives the hook&#8217;s stderr back to the model as the reason, and the agent continues.<\/p>\n<p>The script, in <code>.claude\/hooks\/gate-on-stop.sh<\/code>:<\/p>\n<pre><code class=\"language-bash\">#!\/usr\/bin\/env bash\n# Stop hook: keep Claude working while the verification gate is red.\ncat &gt; \/dev\/null   # hook input (JSON) is not needed here\n\ncd \"$CLAUDE_PROJECT_DIR\" || exit 0\n\n# Nothing to check when no PHP file changed or was added\nif git diff --quiet HEAD -- '*.php' \n   &amp;&amp; [ -z \"$(git ls-files --others --exclude-standard -- '*.php')\" ]; then\n  exit 0\nfi\n\nif ! output=$(ddev composer gate 2&gt;&amp;1); then\n  echo \"The verification gate (ddev composer gate) is red. Fix the cause, do not weaken checks:\" &gt;&amp;2\n  echo \"$output\" | tail -n 40 &gt;&amp;2\n  exit 2\nfi\nexit 0<\/code><\/pre>\n<p>And the registration in <code>.claude\/settings.json<\/code>:<\/p>\n<pre><code class=\"language-json\">{\n    \"hooks\": {\n        \"Stop\": [\n            {\n                \"hooks\": [\n                    {\n                        \"type\": \"command\",\n                        \"command\": \"\"$CLAUDE_PROJECT_DIR\"\/.claude\/hooks\/gate-on-stop.sh\",\n                        \"timeout\": 600\n                    }\n                ]\n            }\n        ]\n    }\n}<\/code><\/pre>\n<p>Make the script executable with <code>chmod +x<\/code>. The <code>tail -n 40<\/code> keeps the feedback short: the agent needs the failing check and the first errors, not three hundred lines of PHPUnit dots.<\/p>\n<h2>Things to know before you switch it on<\/h2>\n<ul>\n<li><strong>Loops are limited.<\/strong> The Stop hook input has a field <code>stop_hook_active<\/code>, which is true when Claude is already continuing because of a stop hook. Claude Code also caps how many times in a row stop hooks can continue the turn. So a gate that can never become green will not run forever, but it will waste time. Make sure the gate is green on a clean checkout first.<\/li>\n<li><strong>It must be fast enough.<\/strong> A gate that takes ten minutes after every small answer is annoying. Keep the heavy functional tests in CI, and only the fast checks in the hook, or skip the hook when no PHP file changed, as the script does.<\/li>\n<li><strong>It does not replace review.<\/strong> A green gate says &#8220;nothing obviously broken&#8221;. It does not say &#8220;this is the right solution&#8221;. I still read the diff. The gate only means I read it with less noise.<\/li>\n<\/ul>\n<h2>What changes with a gate<\/h2>\n<p>The final message is no longer a claim like &#8220;all tests pass&#8221;. It ends with the real tail of the gate output, and when something is red, the agent has to say what and why. The hook catches the cases where it would otherwise stop too early. And as a reviewer, you start from facts instead of from a nice summary.<\/p>\n<p>It is a boring setup: four tools that PHP developers have used for years, one Composer script and a ten-line shell script. But boring is exactly what I want between AI-written code and a production server. Cheers!<\/p>\n<h2>Further reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/code.claude.com\/docs\/en\/hooks\">Claude Code: Hooks reference (Stop, exit code 2, stop_hook_active)<\/a><\/li>\n<li><a href=\"https:\/\/getcomposer.org\/doc\/articles\/scripts.md\">Composer: Scripts<\/a><\/li>\n<li><a href=\"https:\/\/phpstan.org\/user-guide\/baseline\">PHPStan: The baseline<\/a><\/li>\n<li><a href=\"https:\/\/cs.symfony.com\/doc\/usage.html\">PHP-CS-Fixer: Usage<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>AI-written PHP looks plausible, which is the problem. One Composer script runs lint, PHP-CS-Fixer, PHPStan and PHPUnit, and a Stop hook keeps the agent working while it is red.<\/p>\n","protected":false},"author":1,"featured_media":69,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[34,37,38,32,31],"class_list":["post-68","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-engineering","tag-ai-agents","tag-automation","tag-code-review","tag-php-8","tag-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A verification gate for AI-written PHP code<\/title>\n<meta name=\"description\" content=\"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A verification gate for AI-written PHP code\" \/>\n<meta property=\"og:description\" content=\"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/\" \/>\n<meta property=\"og:site_name\" content=\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hojaonline7\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-19T07:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:site\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/\"},\"author\":{\"name\":\"Hoja Mustaffa Abdul Latheef\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"headline\":\"A verification gate for AI-written PHP: lint, PHPStan, tests\",\"datePublished\":\"2026-10-19T07:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/\"},\"wordCount\":771,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg\",\"keywords\":[\"AI agents\",\"Automation\",\"Code review\",\"PHP 8\",\"Testing\"],\"articleSection\":[\"AI engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/\",\"name\":\"A verification gate for AI-written PHP code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg\",\"datePublished\":\"2026-10-19T07:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"description\":\"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg\",\"contentUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Green gate or not done\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A verification gate for AI-written PHP: lint, PHPStan, tests\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\",\"name\":\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\",\"description\":\"Notes from daily work with TYPO3, PHP and AI-assisted engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hoja.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\",\"name\":\"Hoja Mustaffa Abdul Latheef\",\"description\":\"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.\",\"sameAs\":[\"https:\\\/\\\/hoja.in\\\/\"],\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/author\\\/hoja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A verification gate for AI-written PHP code","description":"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/","og_locale":"en_US","og_type":"article","og_title":"A verification gate for AI-written PHP code","og_description":"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.","og_url":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/","og_site_name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","article_publisher":"https:\/\/www.facebook.com\/hojaonline7","article_published_time":"2026-10-19T07:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg","type":"image\/jpeg"}],"author":"Hoja Mustaffa Abdul Latheef","twitter_card":"summary_large_image","twitter_creator":"@hojaonline","twitter_site":"@hojaonline","twitter_misc":{"Written by":"Hoja Mustaffa Abdul Latheef","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#article","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/"},"author":{"name":"Hoja Mustaffa Abdul Latheef","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"headline":"A verification gate for AI-written PHP: lint, PHPStan, tests","datePublished":"2026-10-19T07:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/"},"wordCount":771,"commentCount":0,"image":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg","keywords":["AI agents","Automation","Code review","PHP 8","Testing"],"articleSection":["AI engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/","url":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/","name":"A verification gate for AI-written PHP code","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#primaryimage"},"image":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg","datePublished":"2026-10-19T07:00:00+00:00","author":{"@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"description":"One composer gate script with php -l, PHP-CS-Fixer, PHPStan and PHPUnit, plus a Claude Code Stop hook that refuses to finish while the gate is red.","breadcrumb":{"@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#primaryimage","url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg","contentUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/a-verification-gate-for-ai-written-php-lint-phpstan-tests.jpg","width":1200,"height":630,"caption":"Green gate or not done"},{"@type":"BreadcrumbList","@id":"https:\/\/hoja.in\/blog\/a-verification-gate-for-ai-written-php-lint-phpstan-tests\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoja.in\/blog\/"},{"@type":"ListItem","position":2,"name":"A verification gate for AI-written PHP: lint, PHPStan, tests"}]},{"@type":"WebSite","@id":"https:\/\/hoja.in\/blog\/#website","url":"https:\/\/hoja.in\/blog\/","name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","description":"Notes from daily work with TYPO3, PHP and AI-assisted engineering","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoja.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b","name":"Hoja Mustaffa Abdul Latheef","description":"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.","sameAs":["https:\/\/hoja.in\/"],"url":"https:\/\/hoja.in\/blog\/author\/hoja\/"}]}},"_links":{"self":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":1,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media\/69"}],"wp:attachment":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}