Skip to content

Fix access array offset on bool for FederatedShareProvider tests - #37290

Merged
phil-davis merged 1 commit into
masterfrom
php-7.4-federatedfilesharing
Apr 22, 2020
Merged

phil-davis merged 1 commit into
masterfrom
php-7.4-federatedfilesharing

Conversation

@VicDeo

@VicDeo VicDeo commented Apr 21, 2020

Copy link
Copy Markdown
Contributor

Description

  • Use null coalesce operator in case $status is not defined.
  • true is not valid response - we expect an array there

Related Issue

https://github.com/owncloud/enterprise/issues/3967

Motivation and Context

PHP 7.4 support

How Has This Been Tested?

phpunit

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@VicDeo VicDeo added this to the development milestone Apr 21, 2020
@VicDeo VicDeo self-assigned this Apr 21, 2020
@update-docs

update-docs Bot commented Apr 21, 2020

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@mmattel
mmattel requested review from PVince81 and phil-davis April 21, 2020 14:06
@codecov

codecov Bot commented Apr 21, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #37290 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37290   +/-   ##
=========================================
  Coverage     64.53%   64.53%           
  Complexity    19158    19158           
=========================================
  Files          1266     1266           
  Lines         74916    74916           
  Branches       1331     1331           
=========================================
  Hits          48344    48344           
  Misses        26180    26180           
  Partials        392      392           
Flag Coverage Δ Complexity Δ
#javascript 54.14% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.68% <100.00%> (ø) 19158.00 <0.00> (ø)
Impacted Files Coverage Δ Complexity Δ
...ederatedfilesharing/lib/FederatedShareProvider.php 62.41% <100.00%> (ø) 88.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af4b0eb...9166ca7. Read the comment docs.

@phil-davis
phil-davis merged commit 9b1f480 into master Apr 22, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the php-7.4-federatedfilesharing branch April 22, 2020 02:51
@phil-davis phil-davis mentioned this pull request Apr 24, 2020
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants