<commit_before>--TEST--
Verifies that writing a non-object to an object-typed property causes a fatal error
--FILE--
<?php

require_once __DIR__ . '/init.php';

$object = new \StrictPhpTestAsset\ClassWithGenericStringTypedProperty();

$object->property = 123;
?>
--EXPECT--
PHP Catchable fatal error:%a<commit_msg>Correcting expectation for a string typed property assignment with an invalid value<commit_after>--TEST--
Verifies that writing a non-object to an object-typed property causes a fatal error
--FILE--
<?php

require_once __DIR__ . '/init.php';

$object = new \StrictPhpTestAsset\ClassWithGenericStringTypedProperty();

$object->property = 123;
?>
--EXPECTF--
%AFatal error: Uncaught exception 'ErrorException' with message 'NOPE'%a
{'fraction_non_alphanumeric': 0.11709286675639301, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 4.904761904761905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7554026', 'n_tokens_mistral': 228, 'n_tokens_neox': 224, 'n_words': 72}