{"id":21064403,"url":"https://github.com/brandembassy/phpstan-forbidden-method-calls-rule","last_synced_at":"2025-07-03T11:02:48.350Z","repository":{"id":62496656,"uuid":"145524555","full_name":"BrandEmbassy/phpstan-forbidden-method-calls-rule","owner":"BrandEmbassy","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-21T16:26:57.000Z","size":4,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T18:52:53.912Z","etag":null,"topics":["phpstan","phpstan-rules"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrandEmbassy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-08-21T07:31:20.000Z","updated_at":"2025-03-11T11:06:40.000Z","dependencies_parsed_at":"2024-11-19T18:01:44.410Z","dependency_job_id":null,"html_url":"https://github.com/BrandEmbassy/phpstan-forbidden-method-calls-rule","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandEmbassy%2Fphpstan-forbidden-method-calls-rule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandEmbassy%2Fphpstan-forbidden-method-calls-rule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandEmbassy%2Fphpstan-forbidden-method-calls-rule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandEmbassy%2Fphpstan-forbidden-method-calls-rule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrandEmbassy","download_url":"https://codeload.github.com/BrandEmbassy/phpstan-forbidden-method-calls-rule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456136,"owners_count":22074111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["phpstan","phpstan-rules"],"created_at":"2024-11-19T17:49:26.539Z","updated_at":"2025-05-16T02:32:35.010Z","avatar_url":"https://github.com/BrandEmbassy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPStan Forbidden Method Calls Rule\n\n\u003e This PHPStan rule was created by Petr Morávek (https://github.com/xificurk).\n\n## Usage\n\n```bash\ncomposer require --dev brandembassy/phpstan-forbidden-method-calls-rule \n```\n\nAnd then in your `phpstan.neon` register service:\n\n```\nservices:\n    -\n        class: BrandEmbasssy\\ForbiddenMethodCallsRule\\ForbiddenMethodCallsRule\n        setup:\n            - addForbiddenMethod(Psr\\Http\\Message\\StreamInterface, getContents)\n        tags:\n            - phpstan.rules.rule\n```\n\n## Example\n\n```\n ------ ----------------------------------------------------------------- \n  Line   foo/Bar/Baz.php (in context of class Foo\\Bar\\Baz)  \n ------ ----------------------------------------------------------------- \n  95     Calling forbidden method                                                                                                                                        \n         Psr\\Http\\Message\\StreamInterface:getContents().                                                                                                                 \n ------ -----------------------------------------------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandembassy%2Fphpstan-forbidden-method-calls-rule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandembassy%2Fphpstan-forbidden-method-calls-rule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandembassy%2Fphpstan-forbidden-method-calls-rule/lists"}