diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache index 3d4a424..e9542f3 100644 --- a/.php-cs-fixer.cache +++ b/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.0.12","version":"3.2.1","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Api.php":4147640268,"src\/Time\/SystemTime.php":1875330795,"src\/Time\/Time.php":3063453905,"src\/helpers.php":878229930,"src\/Concerns\/UsesTime.php":2203258051,"src\/Concerns\/HasContext.php":2283577173,"src\/Enums\/GroupingTypes.php":794823242,"src\/Enums\/MessageLevels.php":2252993314,"src\/Http\/Exceptions\/InvalidData.php":4224780353,"src\/Http\/Exceptions\/BadResponse.php":2136825932,"src\/Http\/Exceptions\/MissingParameter.php":3963873571,"src\/Http\/Exceptions\/BadResponseCode.php":3629899270,"src\/Http\/Exceptions\/NotFound.php":605045793,"src\/Http\/Client.php":3513047095,"src\/Http\/Response.php":3175166434,"src\/Solutions\/ReportSolution.php":1414311092,"src\/Flare.php":4157735277,"src\/Report.php":4287930236,"src\/Glows\/Glow.php":2938926460,"src\/Glows\/Recorder.php":741799100,"src\/Stacktrace\/File.php":2191220409,"src\/Stacktrace\/Codesnippet.php":1758681831,"src\/Stacktrace\/Frame.php":2201806026,"src\/Stacktrace\/Stacktrace.php":3487330919,"src\/Contracts\/ProvidesFlareContext.php":3654647562,"src\/Frame.php":1560844999,"src\/Middleware\/CensorRequestBodyFields.php":3157018559,"src\/Middleware\/AddGlows.php":2757630618,"src\/Middleware\/AnonymizeIp.php":2582237091,"src\/Context\/ContextInterface.php":3556428806,"src\/Context\/ContextDetectorInterface.php":3409530978,"src\/Context\/ContextContextDetector.php":1433590813,"src\/Context\/RequestContext.php":916577092,"src\/Context\/ConsoleContext.php":2891436865,"src\/View.php":1758466251,"src\/Truncation\/AbstractTruncationStrategy.php":3738899546,"src\/Truncation\/ReportTrimmer.php":1411772441,"src\/Truncation\/TrimStringsStrategy.php":1149918480,"src\/Truncation\/TruncationStrategy.php":2876512000,"src\/Truncation\/TrimContextItemsStrategy.php":2488083767,"tests\/TestCase.php":996592721,"tests\/Concerns\/MatchesReportSnapshots.php":2362276842,"tests\/Concerns\/MatchesDumpSnapshots.php":3419801558,"tests\/Concerns\/MatchesCodeSnippetSnapshots.php":685279681,"tests\/Mocks\/FakeClient.php":1694586070,"tests\/FlareTest.php":2320308878,"tests\/Glows\/RecorderTest.php":946753721,"tests\/Stacktrace\/FileTest.php":420603250,"tests\/Stacktrace\/ThrowAndReturnExceptionAction.php":4198281204,"tests\/Stacktrace\/CodesnippetTest.php":765068665,"tests\/Stacktrace\/CodeSnippetDriver.php":4244799073,"tests\/Stacktrace\/StrackTraceTest.php":757065022,"tests\/Stacktrace\/__snapshots__\/StrackTraceTest__it_can_detect_application_frames__1.php":167790125,"tests\/TestClasses\/DumpDriver.php":3041182929,"tests\/TestClasses\/CodeSnippetDriver.php":615657858,"tests\/TestClasses\/FakeTime.php":2977551027,"tests\/TestClasses\/ExceptionWithContext.php":3729019575,"tests\/TestClasses\/Assert.php":151773303,"tests\/TestClasses\/ReportDriver.php":3461657491,"tests\/ReportTest.php":1195087882,"tests\/Context\/RequestContextTest.php":1346110003,"tests\/Context\/ConsoleContextTest.php":3637467343,"tests\/Truncation\/TrimContextItemsStrategyTest.php":112441598,"tests\/Truncation\/TrimStringsStrategyTest.php":2187306892}} \ No newline at end of file +{"php":"8.1.8","version":"3.9.5","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Enums\/GroupingTypes.php":794823242,"src\/Enums\/MessageLevels.php":2252993314,"src\/Flare.php":2076395954,"src\/Glows\/Glow.php":2938926460,"src\/Glows\/Recorder.php":741799100,"src\/Contracts\/ProvidesFlareContext.php":3654647562,"src\/Concerns\/UsesTime.php":2203258051,"src\/Concerns\/HasContext.php":2283577173,"src\/Middleware\/AnonymizeIp.php":2582237091,"src\/Middleware\/AddGlows.php":2757630618,"src\/Middleware\/CensorRequestBodyFields.php":3157018559,"src\/Report.php":4287930236,"src\/Truncation\/ReportTrimmer.php":1411772441,"src\/Truncation\/TruncationStrategy.php":2876512000,"src\/Truncation\/TrimStringsStrategy.php":1149918480,"src\/Truncation\/TrimContextItemsStrategy.php":2488083767,"src\/Truncation\/AbstractTruncationStrategy.php":3738899546,"src\/Stacktrace\/File.php":2191220409,"src\/Stacktrace\/Frame.php":2201806026,"src\/Stacktrace\/Codesnippet.php":1758681831,"src\/Stacktrace\/Stacktrace.php":3487330919,"src\/Http\/Response.php":3175166434,"src\/Http\/Exceptions\/BadResponse.php":2136825932,"src\/Http\/Exceptions\/InvalidData.php":4224780353,"src\/Http\/Exceptions\/MissingParameter.php":3963873571,"src\/Http\/Exceptions\/NotFound.php":605045793,"src\/Http\/Exceptions\/BadResponseCode.php":3629899270,"src\/Http\/Client.php":3513047095,"src\/View.php":1758466251,"src\/helpers.php":878229930,"src\/Frame.php":1560844999,"src\/Solutions\/ReportSolution.php":1414311092,"src\/Time\/Time.php":3063453905,"src\/Time\/SystemTime.php":1875330795,"src\/Context\/ContextInterface.php":3556428806,"src\/Context\/ContextDetectorInterface.php":3409530978,"src\/Context\/RequestContext.php":916577092,"src\/Context\/ContextContextDetector.php":1433590813,"src\/Context\/ConsoleContext.php":2891436865,"src\/Api.php":4147640268,"tests\/Glows\/RecorderTest.php":946753721,"tests\/Concerns\/MatchesDumpSnapshots.php":3419801558,"tests\/Concerns\/MatchesCodeSnippetSnapshots.php":685279681,"tests\/Concerns\/MatchesReportSnapshots.php":2362276842,"tests\/Mocks\/FakeClient.php":1694586070,"tests\/Truncation\/TrimContextItemsStrategyTest.php":112441598,"tests\/Truncation\/TrimStringsStrategyTest.php":2187306892,"tests\/TestClasses\/ExceptionWithContext.php":3729019575,"tests\/TestClasses\/DumpDriver.php":3041182929,"tests\/TestClasses\/Assert.php":151773303,"tests\/TestClasses\/CodeSnippetDriver.php":615657858,"tests\/TestClasses\/ReportDriver.php":3461657491,"tests\/TestClasses\/FakeTime.php":2977551027,"tests\/Stacktrace\/StrackTraceTest.php":757065022,"tests\/Stacktrace\/CodesnippetTest.php":765068665,"tests\/Stacktrace\/FileTest.php":420603250,"tests\/Stacktrace\/CodeSnippetDriver.php":4244799073,"tests\/Stacktrace\/ThrowAndReturnExceptionAction.php":4198281204,"tests\/Stacktrace\/__snapshots__\/StrackTraceTest__it_can_detect_application_frames__1.php":167790125,"tests\/FlareTest.php":2320308878,"tests\/ReportTest.php":1195087882,"tests\/TestCase.php":996592721,"tests\/Context\/ConsoleContextTest.php":3637467343,"tests\/Context\/RequestContextTest.php":1346110003}} \ No newline at end of file diff --git a/src/Flare.php b/src/Flare.php index 5e52b96..ca623b8 100755 --- a/src/Flare.php +++ b/src/Flare.php @@ -58,9 +58,9 @@ class Flare /** @var callable|null */ protected $filterExceptionsCallable; - + /** @var callable|null */ - protected $filterReportsCallable; + protected $filterReportsCallable; public static function register(string $apiKey, string $apiSecret = null, ContextDetectorInterface $contextDetector = null, Container $container = null) { @@ -88,7 +88,7 @@ public function filterReportsUsing(callable $filterReportsCallable) { $this->filterReportsCallable = $filterReportsCallable; } - + /** * @return null|string */