Skip to content

Commit 576ea4b

Browse files
committed
Merge pull request #14 from kenjis/fix-code-coverage
Fixes for generating code coverage report
2 parents 1d3c00f + 7d94ace commit 576ea4b

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<file>./system/ComposerScripts.php</file>
2424
<file>./system/View/Escaper.php</file>
2525
<directory suffix=".php">./system/View/Exception</directory>
26+
<directory suffix=".php">./system/Debug/Toolbar/View</directory>
2627
</exclude>
2728
</whitelist>
2829
</filter>

system/Debug/Exceptions.php

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @filesource
3636
*/
3737

38-
require dirname(__FILE__).'/CustomExceptions.php';
38+
require_once dirname(__FILE__).'/CustomExceptions.php';
3939

4040
class Exceptions
4141
{

system/HTTP/ContentSecurityPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ protected function buildHeaders(ResponseInterface &$response)
621621
* @param array|string|null $values
622622
* @param ResponseInterface $response
623623
*/
624-
protected function addToHeader(\string $name, $values = null, ResponseInterface &$response)
624+
protected function addToHeader(string $name, $values = null, ResponseInterface &$response)
625625
{
626626
if ( empty($values))
627627
{

system/Session/Handlers/MemcachedHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function gc($maxlifetime)
308308
*
309309
* @return bool
310310
*/
311-
protected function lockSession($session_id)
311+
protected function lockSession(string $session_id): bool
312312
{
313313
if (isset($this->lockKey))
314314
{
@@ -360,7 +360,7 @@ protected function lockSession($session_id)
360360
*
361361
* @return bool
362362
*/
363-
protected function releaseLock()
363+
protected function releaseLock(): bool
364364
{
365365
if (isset($this->memcached, $this->lockKey) && $this->lock)
366366
{

system/Session/Handlers/RedisHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function gc($maxlifetime)
311311
* @param string $session_id Session ID
312312
* @return bool
313313
*/
314-
protected function lockSession($session_id)
314+
protected function lockSession(string $session_id): bool
315315
{
316316
if (isset($this->lockKey))
317317
{
@@ -364,7 +364,7 @@ protected function lockSession($session_id)
364364
*
365365
* @return bool
366366
*/
367-
protected function releaseLock()
367+
protected function releaseLock(): bool
368368
{
369369
if (isset($this->redis, $this->lockKey) && $this->lock)
370370
{

0 commit comments

Comments
 (0)