Skip to content
Permalink
Browse files

Fix tests to give more accurate locations

  • Loading branch information
muglug committed Dec 20, 2019
1 parent 8bba522 commit 3d03da271d08e24f82ad04ca2913b23f3dbf0792
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Psalm/Internal/Analyzer/ClassAnalyzer.php
  2. +2 −2 tests/MagicMethodAnnotationTest.php
@@ -998,7 +998,7 @@ public function analyze(
$parent_method_storage,
$this->fq_class_name,
$pseudo_method_storage->visibility ?: 0,
$pseudo_method_storage->location,
$storage->location ?: $pseudo_method_storage->location,
$storage->suppressed_issues,
true,
false
@@ -656,7 +656,7 @@ public function foo(string $s) : C {
/** @method D foo(string $s) */
class B extends A {}',
'error_message' => 'ImplementedReturnTypeMismatch - src/somefile.php:11:33',
'error_message' => 'ImplementedReturnTypeMismatch - src/somefile.php:12:27',
],
'magicMethodOverridesParentWithDifferentParamType' => [
'<?php
@@ -671,7 +671,7 @@ public function foo(string $s) : C {
/** @method D foo(int $s) */
class B extends A {}',
'error_message' => 'ImplementedParamTypeMismatch - src/somefile.php:11:21',
'error_message' => 'ImplementedParamTypeMismatch - src/somefile.php:12:27',
],
'parseBadMethodAnnotation' => [
'<?php

0 comments on commit 3d03da2

Please sign in to comment.
You can’t perform that action at this time.