1--TEST--
2Bug #71978 (Existence of return type hint affects other compatibility rules)
3--FILE--
4<?php
5class A {
6	function foo(int $a) {}
7}
8class B extends A {
9	function foo(string $a) {}
10}
11class A1 {
12	function foo(int $a): int {}
13}
14class B1 extends A1 {
15	function foo(string $a): int {}
16}
17?>
18--EXPECTF--
19Warning: Declaration of B::foo(string $a) should be compatible with A::foo(int $a) in %s on line %d
20
21Warning: Declaration of B1::foo(string $a): int should be compatible with A1::foo(int $a): int in %s on line %d
22