Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP7.4] Fix array access in FederatedShareProvider and Storage/DAV #37311

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Apr 27, 2020

Description

check array key existence before accessing it

Related Issue

Motivation and Context

Clean log file

How Has This Been Tested?

CI
search for Trying to access array offset on value of type in
https://drone.owncloud.com/owncloud/core/24446/36/8
and
https://drone.owncloud.com/owncloud/core/24446/127/18

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 self-assigned this Apr 27, 2020
@VicDeo VicDeo added this to the development milestone Apr 27, 2020
@VicDeo VicDeo linked an issue Apr 27, 2020 that may be closed by this pull request
@VicDeo VicDeo force-pushed the fix-7.4-warnings branch 3 times, most recently from 4541153 to 6989b2f Compare April 27, 2020 08:51
@mmattel mmattel requested a review from phil-davis April 27, 2020 09:51
@mmattel
Copy link
Contributor

mmattel commented Apr 27, 2020

Adding @phil-davis as he is the author of the referenced issue

@phil-davis
Copy link
Contributor

Adding @phil-davis as he is the author of the referenced issue

yep, I am aware of this. I will review when @VicDeo gets the code finalized. writes the description and adds a changelog (if needed)

@VicDeo VicDeo changed the title Fix array access in FederatedShareProvider Fix array access in FederatedShareProvider and Storage/DAV Apr 27, 2020
@VicDeo VicDeo changed the title Fix array access in FederatedShareProvider and Storage/DAV ]Fix array access in FederatedShareProvider and Storage/DAV Apr 27, 2020
@VicDeo VicDeo changed the title ]Fix array access in FederatedShareProvider and Storage/DAV [PHP7.4] Fix array access in FederatedShareProvider and Storage/DAV Apr 27, 2020
@owncloud owncloud deleted a comment from update-docs bot Apr 27, 2020
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if CI is happy.

@VicDeo VicDeo force-pushed the fix-7.4-warnings branch from 16fb108 to a2c641a Compare April 27, 2020 13:15
@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #37311 into master will decrease coverage by 0.00%.
The diff coverage is 88.88%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #37311      +/-   ##
============================================
- Coverage     64.53%   64.53%   -0.01%     
- Complexity    19166    19167       +1     
============================================
  Files          1266     1266              
  Lines         74952    74957       +5     
  Branches       1331     1331              
============================================
+ Hits          48372    48373       +1     
- Misses        26188    26192       +4     
  Partials        392      392              
Flag Coverage Δ Complexity Δ
#javascript 54.14% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.69% <88.88%> (-0.01%) 19167.00 <0.00> (+1.00) ⬇️
Impacted Files Coverage Δ Complexity Δ
...ederatedfilesharing/lib/FederatedShareProvider.php 62.60% <87.50%> (+0.18%) 89.00 <0.00> (+1.00)
lib/private/Files/Storage/DAV.php 78.16% <100.00%> (-0.62%) 0.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 5ebef8a...a2c641a. Read the comment docs.

@phil-davis phil-davis merged commit 02e4c22 into master Apr 27, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-7.4-warnings branch April 27, 2020 14:45
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.

PHP 7.4 reports "Trying to access array offset" messages
3 participants