{"id":37013458,"url":"https://github.com/fredemmott/hack-error-suppressor","last_synced_at":"2026-01-14T01:19:15.150Z","repository":{"id":56982582,"uuid":"79755632","full_name":"fredemmott/hack-error-suppressor","owner":"fredemmott","description":"Disable HHVM's automatic calls to the Hack typechecker","archived":true,"fork":false,"pushed_at":"2018-08-17T16:04:32.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-18T22:38:43.950Z","etag":null,"topics":["hack","hacklang","hhvm","typechecker"],"latest_commit_sha":null,"homepage":"","language":"Hack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredemmott.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-01-23T00:18:28.000Z","updated_at":"2025-03-28T19:17:04.000Z","dependencies_parsed_at":"2022-08-21T12:20:14.939Z","dependency_job_id":null,"html_url":"https://github.com/fredemmott/hack-error-suppressor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fredemmott/hack-error-suppressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredemmott%2Fhack-error-suppressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredemmott%2Fhack-error-suppressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredemmott%2Fhack-error-suppressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredemmott%2Fhack-error-suppressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredemmott","download_url":"https://codeload.github.com/fredemmott/hack-error-suppressor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredemmott%2Fhack-error-suppressor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hack","hacklang","hhvm","typechecker"],"created_at":"2026-01-14T01:19:14.519Z","updated_at":"2026-01-14T01:19:15.136Z","avatar_url":"https://github.com/fredemmott.png","language":"Hack","readme":"INACTIVE PROJECT\n================\n\nTHIS PROJECT IS NO LONGER ACTIVE; it is not needed with HHVM 3.25 and later.\n\nHack Error Suppressor [![Build Status](https://travis-ci.org/fredemmott/hack-error-suppressor.svg?branch=master)](https://travis-ci.org/fredemmott/hack-error-suppressor)\n=====================\n\nUnless the `hhvm.hack.lang.look_for_typechecker` ini setting is set to false,\nby default HHVM will try to run the typechecker when loading any Hack files,\nand raise a catchable runtime fatal error.\n\nThis is a PHP library that makes it convenient to temporarily disable this\nbehavior.\n\nWhen This Is Useful\n-------------------\n\nHHVM's behavior is problematic when:\n\n - HHVM can't work out where the project root is - for example, if you're trying\n   to run Hack code from a composer plugin\n - If your Hack code needs to operate on an incomplete project - for example, if\n   you wish to write Hack code to fetch dependencies\n - If your Hack code needs to operate on known-bad projects - for example,\n   when updating generated code, the code may be inconsistent while your\n   codegen is in process\n\nWhen You Shouldn't Use This\n---------------------------\n\nIt's probably not appropriate if any of these are true:\n - it's used outside of a build/install or codegen process\n - it's used when *using* generated code\n - it's called during normal use of your software, rather than just by\n   developers\n - it's used outside of the CLI\n\nTypechecker errors are real problems with code, and mean that things *are*\nbroken; ignoring enforcement is only a good idea if you are expecting your code\nto be running on a temporarily-broken codebase, and your code fixes it.\n\nInstallation\n------------\n\n```\n$ composer require fredemmott/hack-error-suppressor\n```\n\nUsage\n-----\n\nYou must enable error suppression before any Hack code is loaded.\n\nYou can explicitly enable and disable the suppression:\n\n```PHP\n\u003c?php\nuse FredEmmott\\HackErrorSuppressor;\n\n$it = new HackErrorSuppressor();\n$it-\u003eenable();\ncall_some_hack_code();\n$it-\u003edisable();\n```\n\nYou can also enable the suppression with a scope:\n\n```PHP\n\u003c?php\n\nuse FredEmmott\\ScopedHackErrorSuppressor;\n\nfunction do_unsafe_stuff() {\n  $suppressor = new ScopedHackErrorSuppressor();\n  call_some_hack_code(); // this works\n}\n\ndo_unsafe_stuff();\ncall_some_hack_code(); // this fails, as we're out of scope\n```\n\nUsing Outside Of The CLI\n------------------------\n\nThis is disallowed by default; if you're absolutely certain you need to do this\n(keeping in mind that typechecker errors are real problems with your code, not\njust lint) you can disable the check:\n\n```PHP\nFredEmmott\\HackErrorSuppressor::allowRealRequestsAgainstBrokenCode();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredemmott%2Fhack-error-suppressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredemmott%2Fhack-error-suppressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredemmott%2Fhack-error-suppressor/lists"}