\\n\"\n}\n[/block]\n\n\n**Language:** PHP \n**Checks: ** 80 \n**Categories:** Bug Risk \n**Phan Version:** 1.2.7; \\*Phan 4.0.6 available in **beta** channel\n\nPhan is a Static analyzer for PHP by the creators of PHP.\n\n## Enable the Plugin\n\nTo enable Phan analysis, add the following to your `.codeclimate.yml` configuration file:\n\n```yaml .codeclimate.yml\nplugins:\n phan:\n enabled: true\n config:\n file_extensions: \"php\"\n```\n\n**More information about the CLI is available in the README here**: \n\n## Configure the Plugin\n\nYou can configure various flags for the engine using your `.codeclimate.yml` file. \n\n`minimum-severity` - the minimum severity that the engine should report issues for. Default is `0`. \n`ignore-undeclared` - ignore the `undeclared` checks this code. Default is `false`. \n`quick` - run the engine in `quick` mode. Default is `false`. \n`backward-compatibility-checks` - run `backward compatibility` checks. Default is `false`. \n`dead-code-detection` - perform dead code detection. Default is `false`.\n\n## Using Phan's newer versions\n\n**Phan 4.0.6** is available by specifying the \"beta\" channel in your `.codeclimate.yml`, as seen below:\n\n```yaml\nplugins:\n phan:\n enabled: true\n channel: \"beta\"\n```\n\n## Understand the Plugin\n\nFor more information about all the checks available and their configuration options please check out the documentation here: ","order":32,"isReference":false,"deprecated":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"reusableContent":[],"previousSlug":"","slugUpdatedAt":"2025-04-30T00:22:54.022Z","revision":3,"_id":"57e17235463a9120006d6eea","__v":2,"category":"57e17235463a9120006d6e81","githubsync":"","user":"6802655ea0c31b0038c71658","version":"57e17235463a9120006d6e7f","createdAt":"2016-03-29T21:07:56.880Z","parentDoc":null,"project":"57e17235463a9120006d6e7d","updatedAt":"2025-04-30T15:47:10.497Z","pendingAlgoliaPublish":false,"lastUpdatedHash":"5f899209c604215bf961e173a507e730dc660576","isApi":false,"id":"57e17235463a9120006d6eea"},"meta":{"slug":"phan","type":"docs","parent":null,"image":[],"title":"Phan","title_seo":"Phan","description":"⚠️ Code Climate Quality is being replaced with Qlty Cloud — New users should sign up directly at qlty.sh.— To migrate an existing account, please see our Migration Guide. Language: PHPChecks: 80Categories: Bug RiskPhan Version: 1.2.7; *Phan 4.0.6 available in beta channel Phan is a Static analyzer f...","_id":"57e17235463a9120006d6eea","hidden":false},"config":{"algoliaIndex":"readme_search_v2","amplitude":{"apiKey":"dc8065a65ef83d6ad23e37aaf014fc84","enabled":true},"asset_url":"https://cdn.readme.io","domain":"readme.io","domainFull":"https://dash.readme.com","encryptedLocalStorageKey":"ekfls-2025-03-27","fullstory":{"enabled":true,"orgId":"FSV9A"},"metrics":{"billingCronEnabled":"true","dashUrl":"https://m.readme.io","defaultUrl":"https://m.readme.io","exportMaxRetries":12,"wsUrl":"wss://m.readme.io"},"proxyUrl":"https://try.readme.io","readmeRecaptchaSiteKey":"6LesVBYpAAAAAESOCHOyo2kF9SZXPVb54Nwf3i2x","releaseVersion":"5.394.0","sentry":{"dsn":"https://3bbe57a973254129bcb93e47dc0cc46f@o343074.ingest.sentry.io/2052166","enabled":true},"shMigration":{"promoVideo":"","forceWaitlist":false,"migrationPreview":false},"sslBaseDomain":"readmessl.com","sslGenerationService":"ssl.readmessl.com","stripePk":"pk_live_5103PML2qXbDukVh7GDAkQoR4NSuLqy8idd5xtdm9407XdPR6o3bo663C1ruEGhXJjpnb2YCpj8EU1UvQYanuCjtr00t1DRCf2a","superHub":{"newProjectsEnabled":true},"wootric":{"accountToken":"NPS-122b75a4","enabled":true}},"context":{"labs":{},"user":{},"terms":[],"variables":{"user":{},"defaults":[]},"project":{"_id":"57e17235463a9120006d6e7d","appearance":{"hideTableOfContents":false,"javascript":"","showVersion":true,"header":{"img_pos":"tl","img_size":"auto","img":[],"style":"solid","linkStyle":"buttons"},"hide_logo":true,"html_footer":"","logo":["https://files.readme.io/XZInkgKTAerd7E4rjoUh_code-climate-logo.png","code-climate-logo.png","280","80","#241c24","https://files.readme.io/2ElCNFp1SWLds6tdHhFX_code-climate-logo.png"],"promos":[{"extras":{"type":"html","buttonPrimary":"get-started","buttonSecondary":""},"title":"Code Climate Quality Documentation","text":"","_id":"5653462e0672922b003be690"}],"html_footer_meta":"","html_promo":"\n
\n \n\n
\n \n
\n ⚠️\n Code Climate Quality is being replaced with Qlty Cloud\n
\n \n
\n
\n — New users should sign up directly at qlty.sh\n
\n
\n — To migrate an existing account, please see our Migration Guide\n
\n
\n \n
\n\n\n
\n
\n
\n\n\n Need help with Code Climate Quality?Look no further.\n