Skip to content

Commit

Permalink
Add Stub for Pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Jan 10, 2022
1 parent 142d8f9 commit 859ea15
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ parameters:
- src
bootstrapFiles:
- phpstan-bootstrap.php

stubFiles:
- stubs/Asset.stub
- stubs/Pdf.stub
includes:
- phpstan-baseline.neon
7 changes: 7 additions & 0 deletions stubs/Asset.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Pimcore\Model;

class Asset
{
}
11 changes: 11 additions & 0 deletions stubs/Pdf.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Pimcore\Model\Document\Editable;

class Pdf
{
/**
* @return \Pimcore\Model\Asset|null
*/
public function getElement();
}

0 comments on commit 859ea15

Please sign in to comment.