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

PostFactoryWithProxyGenerator::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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