Skip to content

Commit

Permalink
Merge pull request #601 from JeroenDeDauw/void
Browse files Browse the repository at this point in the history
Add void return hints
  • Loading branch information
JeroenDeDauw authored Feb 9, 2020
2 parents 7ff9459 + db29cc5 commit 4c3b0f1
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ matrix:
php: 7.1
- env: DBTYPE=sqlite; MW=1.33.0; SMW=3.1.0
php: 7.2
- env: DBTYPE=mysql; MW=master
php: 7.3
- env: DBTYPE=mysql; MW=master; SMW=dev-master; TYPE=coverage
php: 7.3
- env: DBTYPE=mysql; MW=master
php: 7.4

install:
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/DataAccess/GeoJsonFetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GeoJsonFetcherTest extends TestCase {
*/
private $fileFetcher;

public function setUp() {
public function setUp(): void {
$this->fileFetcher = new StubFileFetcher( json_encode( self::VALID_FILE_JSON ) );

$page = new \WikiPage( Title::newFromText( self::EXISTING_GEO_JSON_PAGE_WITH_PREFIX ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MediaWikiFileUrlFinderTest extends TestCase {
*/
private $urlFinder;

public function setUp() {
public function setUp(): void {
$this->urlFinder = new MediaWikiFileUrlFinder();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/MapsDistanceParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MapsDistanceParserTest extends TestCase {
'3.4.2 km'
];

public function setUp() {
public function setUp(): void {
if ( !defined( 'MEDIAWIKI' ) ) {
$this->markTestSkipped( 'MediaWiki is not available' );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/MapsMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class MapsMapperTest extends TestCase {

public function setUp() {
public function setUp(): void {
if ( !defined( 'MEDIAWIKI' ) ) {
$this->markTestSkipped( 'MediaWiki is not available' );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/MediaWiki/ParserHooks/ParserHookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
abstract class ParserHookTest extends TestCase {

public static function setUpBeforeClass() {
public static function setUpBeforeClass(): void {
if ( !defined( 'MEDIAWIKI' ) ) {
self::markTestSkipped( 'MediaWiki is not available' );
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Parser/DisplayMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class DisplayMapTest extends TestCase {
private $originalHeight;
private $originalWidth;

public function setUp() {
public function setUp(): void {
$this->originalHeight = $GLOBALS['egMapsMapHeight'];
$this->originalWidth = $GLOBALS['egMapsMapWidth'];
}

public function tearDown() {
public function tearDown(): void {
$GLOBALS['egMapsMapHeight'] = $this->originalHeight;
$GLOBALS['egMapsMapWidth'] = $this->originalWidth;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class AreaDescriptionTest extends TestCase {

public function setUp() {
public function setUp(): void {
if ( !defined( 'SMW_VERSION' ) ) {
$this->markTestSkipped( 'SMW is not available' );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/parsers/LocationParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocationParserTest extends TestCase {
private $fileUrlFinder;
private $useAddressAsTitle;

public function setUp() {
public function setUp(): void {
$this->geocoder = new StubGeocoder( new LatLongValue( 1, 2 ) );
$this->fileUrlFinder = new MediaWikiFileUrlFinder();
$this->useAddressAsTitle = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/System/SemanticMW/MapQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MapQueryTest extends TestCase {
*/
private $contentFetcher;

public function setUp() {
public function setUp(): void {
if ( !defined( 'SMW_VERSION' ) ) {
$this->markTestSkipped( 'SMW is not available' );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Semantic/DataValues/CoordinateValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class CoordinateValueTest extends TestCase {

public function setUp() {
public function setUp(): void {
if ( !defined( 'SMW_VERSION' ) ) {
$this->markTestSkipped( 'SMW is not available' );
}
Expand Down

0 comments on commit 4c3b0f1

Please sign in to comment.