Passed
Pull Request — master (#127)
by Wouter
03:31
created

PostFactoryWithProxyGenerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 3 1
1
<?php
2
3
namespace Zenstruck\Foundry\Tests\Fixtures\Factories;
4
5
/**
6
 * @author Wouter de Jong <[email protected]>
7
 */
8
class PostFactoryWithProxyGenerator extends PostFactory
9
{
10
    protected function initialize(): self
11
    {
12
        return parent::initialize()->withProxyGenerator();
0 ignored issues
show
Bug Best Practice introduced by
The expression return parent::initialize()->withProxyGenerator() returns the type Zenstruck\Foundry\Tests\...s\Factories\PostFactory which includes types incompatible with the type-hinted return Zenstruck\Foundry\Tests\...ctoryWithProxyGenerator.
Loading history...
13
    }
14
}
15