Skip to content

Made the cache factory strict#7901

Merged
rullzer merged 1 commit into
masterfrom
strict_cache_factory
Jan 17, 2018
Merged

Made the cache factory strict#7901
rullzer merged 1 commit into
masterfrom
strict_cache_factory

Conversation

@rullzer
Copy link
Copy Markdown
Member

@rullzer rullzer commented Jan 16, 2018

  • Return types
  • Typehints
  • made strict

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

Comment thread lib/private/Memcache/Factory.php Outdated
namespace OC\Memcache;

use OCP\ICache;
use \OCP\ICacheFactory;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd prefer consistency here 😉

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fair enough... I gues one was hand writen and the other a phpstorm import ;)

@rullzer rullzer force-pushed the strict_cache_factory branch from faf3f86 to 3197209 Compare January 16, 2018 20:02
@MorrisJobke
Copy link
Copy Markdown
Member

ref #7392

@MorrisJobke
Copy link
Copy Markdown
Member

Unit tests fail

* Return types
* Typehints
* made strict
* fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the strict_cache_factory branch from 3197209 to c5fcfb0 Compare January 16, 2018 20:58
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 16, 2018

Codecov Report

Merging #7901 into master will decrease coverage by <.01%.
The diff coverage is 75%.

@@             Coverage Diff              @@
##             master    #7901      +/-   ##
============================================
- Coverage     51.24%   51.24%   -0.01%     
  Complexity    24930    24930              
============================================
  Files          1604     1604              
  Lines         94988    94988              
  Branches       1376     1376              
============================================
- Hits          48674    48673       -1     
- Misses        46314    46315       +1
Impacted Files Coverage Δ Complexity Δ
lib/private/Memcache/Factory.php 70.83% <75%> (ø) 21 <21> (ø) ⬇️
apps/files_trashbin/lib/Trashbin.php 72.28% <0%> (-0.25%) 136% <0%> (ø)

@rullzer rullzer merged commit d1420ef into master Jan 17, 2018
@rullzer rullzer deleted the strict_cache_factory branch January 17, 2018 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants