Mark empty constructors as pure in tests
commit124c811ee27f86fc4e647e30659c40bae693a59e
authorOguz Ulgen <oulgen@fb.com>
Tue, 7 Dec 2021 23:36:05 +0000 (7 15:36 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 7 Dec 2021 23:37:40 +0000 (7 15:37 -0800)
treeb0ba5fdab851085538727149165cb72bf5837cc1
parente1db70e486e0c17cf59a4700c2b62de72be883b1
Mark empty constructors as pure in tests

Summary:
Looking at coeffect violations in tests, most of them are due to constructors being defaults when they can be pure. Lets mark empty ctors to be pure.

```
fastmod '__construct\((.*?)\) \{\}' '__construct(${1})[] {}' -- hphp/test/slow/
```

Reviewed By: rodmk

Differential Revision: D32925768

fbshipit-source-id: c6f6e8136be361426c4f701235b2e6c2fb2f4494
143 files changed:
hphp/test/slow/async/condition.php
hphp/test/slow/attributes/atted_syntax/atted_attribute.php
hphp/test/slow/attributes/class_attribute.php
hphp/test/slow/attributes/empty_attribute_default_arg_vs_missing.php
hphp/test/slow/attributes/reflection_attribute.php
hphp/test/slow/await_as_an_expression/await_as_expr_in_using.php
hphp/test/slow/class-ptr/class-compare-notice.php
hphp/test/slow/class-ptr/class-compare.php
hphp/test/slow/closure/clone.php
hphp/test/slow/closure/ctor-case.php
hphp/test/slow/closure/ctor.php
hphp/test/slow/clsmeth-nocompat/compare.php
hphp/test/slow/clsmeth-nocompat/elem-set-notice.php
hphp/test/slow/clsmeth-nocompat/elem-set-verbose.php
hphp/test/slow/clsmeth-nocompat/elem-unset-notice.php
hphp/test/slow/clsmeth-nocompat/primitive-cmp.php
hphp/test/slow/clsmeth/primitive-cmp-notice.php
hphp/test/slow/clsmeth/primitive-cmp.php
hphp/test/slow/collection_classes/uasort-mutate.php
hphp/test/slow/collection_classes/uasort-throw.php
hphp/test/slow/collection_classes/uksort-mutate.php
hphp/test/slow/collection_classes/uksort-throw.php
hphp/test/slow/constructor/ctor-compat-1.php
hphp/test/slow/constructor/ctor-compat-2.php
hphp/test/slow/ctor_param_promotion_bad_mod.php
hphp/test/slow/dict/1001-structs.php
hphp/test/slow/dict/remove.php
hphp/test/slow/dict/softcache.php
hphp/test/slow/dom_document/uninit_doc_guard.php
hphp/test/slow/dynamic-calls/cls_meth/forbid-notice.php
hphp/test/slow/dynamic-calls/cls_meth/forbid-throw.php
hphp/test/slow/dynamic-calls/constructs/forbid-notice.php
hphp/test/slow/dynamic-calls/constructs/forbid-throw.php
hphp/test/slow/dynamic-calls/forbid-notice.php
hphp/test/slow/dynamic-calls/forbid-throw-all.php
hphp/test/slow/dynamic-calls/func/forbid-notice-with-attr.php
hphp/test/slow/dynamic-calls/func/forbid-notice.php
hphp/test/slow/dynamic-calls/func/forbid-throw-all.php
hphp/test/slow/dynamic-calls/func/forbid-throw.php
hphp/test/slow/dynamic-calls/inst_meth/forbid-notice.php
hphp/test/slow/dynamic-calls/inst_meth/forbid-throw.php
hphp/test/slow/dynamic-calls/reflection-new-instance.php
hphp/test/slow/enum_class/enum_class09.php
hphp/test/slow/enum_class/enum_class10.php
hphp/test/slow/enum_class/enum_class11.php
hphp/test/slow/enum_class/enum_class12.php
hphp/test/slow/enum_class/enum_class13.php
hphp/test/slow/enum_class/enum_class14.php
hphp/test/slow/enum_class/enum_class15.php
hphp/test/slow/enum_class/enum_class16.php
hphp/test/slow/enum_class/enum_class17.php
hphp/test/slow/enum_class/enum_class18.php
hphp/test/slow/ext_datetime/no-ctor.php
hphp/test/slow/ext_intervaltimer/intervaltimer.php
hphp/test/slow/facts/attribute-classes.inc
hphp/test/slow/facts/facts.php.expectf
hphp/test/slow/first_last_counted.php
hphp/test/slow/func-ptr-no-interop/compare.php
hphp/test/slow/hhbbc/array-like-append.php
hphp/test/slow/hhbbc/fcalld_lsb_001.php
hphp/test/slow/hhbbc/func_family_010.php
hphp/test/slow/implicit_conversions/behaviour_change/switch/misc_typed_cases.php
hphp/test/slow/implicit_conversions/switch/misc_typed_cases.php
hphp/test/slow/inout/bad-constructor.php
hphp/test/slow/inout/bad-trait-2.php
hphp/test/slow/inout/inout-decl.php
hphp/test/slow/memoize/args.php
hphp/test/slow/memoize/memo-key-specialization.php
hphp/test/slow/memoize/untyped.php
hphp/test/slow/object/const/apc-slow.inc
hphp/test/slow/object/const/apc-wakeup.php
hphp/test/slow/object/const/apc.php
hphp/test/slow/object/const/clone-instance-memo.php
hphp/test/slow/object/const/clone-throw-cpp-exception.php
hphp/test/slow/object/const/clone-throw.php
hphp/test/slow/object/const/clone.php
hphp/test/slow/object/const/unserialize-dynamic.php
hphp/test/slow/object/const/unserialize-slow.php
hphp/test/slow/object/const/unserialize-wakeup.php
hphp/test/slow/object/const/unserialize.php
hphp/test/slow/object/ctor_fail.php
hphp/test/slow/object/ctor_fail2.php
hphp/test/slow/object/ctor_fail_abstract.php
hphp/test/slow/object/ctor_fail_abstract2.php
hphp/test/slow/object_magic_method/tostring_nested_comparisons.php
hphp/test/slow/parenthesized_calls_more.php
hphp/test/slow/parser/async-constructor.php
hphp/test/slow/readonly/as.php
hphp/test/slow/readonly/await.php
hphp/test/slow/readonly/explicit_prop_call.php
hphp/test/slow/readonly/explicit_prop_call_ok.php
hphp/test/slow/readonly/implicit_prop_call.php
hphp/test/slow/readonly/implicit_prop_call_ok.php
hphp/test/slow/readonly/modify-this-1.php
hphp/test/slow/readonly/modify-this-2.php
hphp/test/slow/readonly/pair.php
hphp/test/slow/readonly/readonly_method_call.php
hphp/test/slow/readonly/ternary.php
hphp/test/slow/readonly/this_ty.php
hphp/test/slow/readonly/tuple.php
hphp/test/slow/readonly/warning/explicit_prop_call.php
hphp/test/slow/readonly/warning/explicit_prop_call_ok.php
hphp/test/slow/readonly/warning/implicit_prop_call.php
hphp/test/slow/readonly/warning/implicit_prop_call_ok.php
hphp/test/slow/readonly/warning/modify-this-1.php
hphp/test/slow/readonly/warning/modify-this-2.php
hphp/test/slow/readonly/warning/readonly_method_call.php
hphp/test/slow/reflection/ReflectionMethod__construct.php
hphp/test/slow/reflection/ReflectionProperty_not_constructed.php
hphp/test/slow/reflection/instantiable.php
hphp/test/slow/reified-generics/classes.php
hphp/test/slow/serialization/repo_types_001.php
hphp/test/slow/serialize/custom_serializer.php
hphp/test/slow/spec/tests/classes/visibility.php
hphp/test/slow/string_length_overflow/thrift.php
hphp/test/slow/super-inlining-bros-3.php.disabled
hphp/test/slow/super-inlining-bros.php.disabled
hphp/test/slow/super-inlining-bros3.php.disabled
hphp/test/slow/symbol_refs/symbol_refs_class.inc
hphp/test/slow/thrift/1556.php
hphp/test/slow/thrift/1557.php
hphp/test/slow/thrift/1558.php
hphp/test/slow/thrift/1559.php
hphp/test/slow/thrift/forward_compatibility.php
hphp/test/slow/thrift/hack_adapter.php
hphp/test/slow/thrift/hack_field_adapter.php
hphp/test/slow/thrift/namespace.php
hphp/test/slow/thrift/nested_struct.php
hphp/test/slow/thrift/wrong_spec.php
hphp/test/slow/traits/require_constraint_basic.php
hphp/test/slow/traits/static_closure_trait_generator.php
hphp/test/slow/type_structure/resolved-autoload.php
hphp/test/slow/variadic_args/closures.php
hphp/test/slow/volatile/1228.inc
hphp/test/slow/yield/2152.php
hphp/test/slow/yield/2177.php
hphp/test/slow/yield/2186.php
hphp/test/slow/yield/clone/g1.php
hphp/test/slow/yield/clone/g11.php
hphp/test/slow/yield/clone/g12.php
hphp/test/slow/yield/clone/g2.php
hphp/test/slow/yield/clone/g3.php
hphp/test/slow/yield/clone/g4.php