{"id":20737472,"url":"https://github.com/liborm85/phpstan-excludepaths-bug","last_synced_at":"2026-04-15T11:31:52.324Z","repository":{"id":99609211,"uuid":"332215731","full_name":"liborm85/phpstan-excludepaths-bug","owner":"liborm85","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-23T14:19:09.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T23:26:26.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liborm85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-23T13:22:41.000Z","updated_at":"2021-01-23T14:19:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f28dec4d-5f5f-4fb8-90a3-8b2e79bd2aae","html_url":"https://github.com/liborm85/phpstan-excludepaths-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liborm85/phpstan-excludepaths-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liborm85%2Fphpstan-excludepaths-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liborm85%2Fphpstan-excludepaths-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liborm85%2Fphpstan-excludepaths-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liborm85%2Fphpstan-excludepaths-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liborm85","download_url":"https://codeload.github.com/liborm85/phpstan-excludepaths-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liborm85%2Fphpstan-excludepaths-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31839202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T06:14:36.313Z","updated_at":"2026-04-15T11:31:52.302Z","avatar_url":"https://github.com/liborm85.png","language":"PHP","readme":"## Steps to reproduce the problem\n\nFor reproduce use example repo: https://github.com/liborm85/phpstan-excludepaths-bug with folders/files structure and neon config files and follow the steps below. Where is 1 error in `src/thirdparty/ThirdpartyClass.php` file and 1 error in `src/broken/broken.php` file.\n\n### 0. PHPStan config file `phpstan0.neon` - Work OK\n\nNothing is ignored.\n\n#### Correct result with 2 errors:\n```\n ------ --------------------------------------------------------------------\n  Line   broken\\broken.php\n ------ --------------------------------------------------------------------\n  3      Function brokenfile not found.\n         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols\n ------ --------------------------------------------------------------------\n\n ------ ----------------------------------------------------------------------\n  Line   thirdparty\\ThirdpartyClass.php\n ------ ----------------------------------------------------------------------\n  6      Access to an undefined property ThirdpartyClass::$undefinedVariable.\n ------ ----------------------------------------------------------------------\n```\n\n### 1. PHPStan config file `phpstan1.neon` - Work OK\n\nFolder `src/thirdparty` is excluded from analyse.\n\n#### Correct result with 1 error:\n```\n ------ --------------------------------------------------------------------\n  Line   broken\\broken.php\n ------ --------------------------------------------------------------------\n  3      Function brokenfile not found.\n         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols\n ------ --------------------------------------------------------------------\n```\n\n### 2. PHPStan config file `phpstan2.neon` - Work WRONG\n\nFolder `src/thirdparty` is excluded from analyse.\n\nFolder `src/broken` is excluded from analyseAndScan.\n\n`phpstan2.neon` file:\n```\n  excludePaths:\n    analyse:\n      - src/thirdparty\n    analyseAndScan:\n      - src/broken\n```\n\nI expect exclude `src/thirdparty` folder from analyse (only discovering symbols will be performed) and `src/broken` from analyse and scan completely.\n\n#### Actual result:\n```\n ------ ----------------------------------------------------------------------\n  Line   thirdparty\\ThirdpartyClass.php\n ------ ----------------------------------------------------------------------\n  6      Access to an undefined property ThirdpartyClass::$undefinedVariable.\n ------ ----------------------------------------------------------------------\n```\n\n#### Expected result:\n\n```\n[OK] No errors\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliborm85%2Fphpstan-excludepaths-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliborm85%2Fphpstan-excludepaths-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliborm85%2Fphpstan-excludepaths-bug/lists"}