{"id":21311485,"url":"https://github.com/mhujer/phpstan-consistence","last_synced_at":"2025-07-11T23:32:37.169Z","repository":{"id":46225238,"uuid":"115255855","full_name":"mhujer/phpstan-consistence","owner":"mhujer","description":"Custom PHPStan Rules for Consistence library (https://github.com/phpstan/phpstan and https://github.com/consistence/consistence/)","archived":false,"fork":false,"pushed_at":"2021-11-05T12:25:16.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T08:07:05.561Z","etag":null,"topics":["php","phpstan","phpstan-extension","phpstan-rules","static-analysis"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/mhujer.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}},"created_at":"2017-12-24T10:31:23.000Z","updated_at":"2022-01-01T10:16:32.000Z","dependencies_parsed_at":"2022-09-19T07:31:56.787Z","dependency_job_id":null,"html_url":"https://github.com/mhujer/phpstan-consistence","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-consistence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-consistence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-consistence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-consistence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhujer","download_url":"https://codeload.github.com/mhujer/phpstan-consistence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225769357,"owners_count":17521271,"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":["php","phpstan","phpstan-extension","phpstan-rules","static-analysis"],"created_at":"2024-11-21T17:18:34.332Z","updated_at":"2024-11-21T17:18:34.989Z","avatar_url":"https://github.com/mhujer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom PHPStan Rules for Consistence library\n\n[![Build Status](https://travis-ci.org/mhujer/phpstan-consistence.svg)](https://travis-ci.org/mhujer/phpstan-consistence)\n[![Coverage Status](https://coveralls.io/repos/github/mhujer/phpstan-consistence/badge.svg)](https://coveralls.io/github/mhujer/phpstan-consistence)\n[![Latest Stable Version](https://poser.pugx.org/mhujer/phpstan-consistence/v/stable)](https://packagist.org/packages/mhujer/phpstan-consistence)\n[![License](https://poser.pugx.org/mhujer/phpstan-consistence/license)](https://packagist.org/packages/mhujer/phpstan-consistence)\n\nThis repository provides following custom [PHPStan](https://github.com/phpstan/phpstan) rules for [Consistence library](https://github.com/consistence/consistence/)\n\n* Check that no class extends `\\Consistence\\ObjectPrototype` or uses `\\Consistence\\Type\\ObjectMixinTrait` somewhere in its hierarchy tree. The type of errors it prevents is caught by PHPStan so there is no need to extend/use anymore.\n* Check that Consistence function wrappers (from `ArrayType`) are used for array manipulation\n\n\n## Usage\n\nTo use those rules, require them in [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require --dev mhujer/phpstan-consistence\n```\n\nAnd include them in your project's PHPStan config:\n\n```yaml\nincludes:\n    - vendor/mhujer/phpstan-consistence/rules.neon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhujer%2Fphpstan-consistence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhujer%2Fphpstan-consistence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhujer%2Fphpstan-consistence/lists"}