1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00

Use strict types

This commit is contained in:
Aaron Piotrowski 2016-08-24 00:01:41 -05:00
parent 06c2707c1f
commit 2db21996c6
20 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;
@ -45,7 +45,7 @@ abstract class HandleTest extends \PHPUnit_Framework_TestCase {
$position = 0;
$stat = (yield file\stat(__FILE__));
$chunkSize = \floor(($stat["size"] / 5));
$chunkSize = (int) \floor(($stat["size"] / 5));
while (!$handle->eof()) {
$chunk = (yield $handle->read($chunkSize));

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types = 1);
namespace Amp\File\Test;