diff --git a/tests/Unit/PostQueryBuilderTest.php b/tests/Unit/PostQueryBuilderTest.php index c6e82f0..6775f00 100644 --- a/tests/Unit/PostQueryBuilderTest.php +++ b/tests/Unit/PostQueryBuilderTest.php @@ -53,7 +53,7 @@ public function throw_error_on_missing_static_function() $errorThrown = false; try { Post::missingStaticFunction(); - } catch (Throwable $th) { + } catch (Throwable $e) { $errorThrown = true; } diff --git a/tests/Unit/ScopedQueryBuilderTest.php b/tests/Unit/ScopedQueryBuilderTest.php index 8103f65..4101bcc 100644 --- a/tests/Unit/ScopedQueryBuilderTest.php +++ b/tests/Unit/ScopedQueryBuilderTest.php @@ -119,7 +119,7 @@ public function missing_query_scope_throws_an_error() try { $builder = new ScopedQueryBuilder(PostWithQueryScope::class); $builder->nonExistentScope(); - } catch (Throwable $th) { + } catch (Throwable $e) { $errorThrown = true; }