Skip to content

Commit cfbf49a

Browse files
committed
:octocat: generate doc from QROptions instead of QROptionsTrait
1 parent 8d5d5db commit cfbf49a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/Usage/Configuration-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration settings
2-
<!-- This file is auto generated from the source of QROptionsTrait.php -->
2+
<!-- This file is auto generated from the source of QROptions.php -->
33
## version
44

55
QR Code version number

docs/qroptions-doc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
* @license MIT
99
*/
1010

11-
use chillerlan\QRCode\QROptionsTrait;
11+
use chillerlan\QRCode\QROptions;
1212

1313
require_once __DIR__.'/../vendor/autoload.php';
1414

1515
$file = 'Usage/Configuration-settings.md';
1616
$content = [
1717
'# Configuration settings',
18-
'<!-- This file is auto generated from the source of QROptionsTrait.php -->',
18+
'<!-- This file is auto generated from the source of QROptions.php -->',
1919
];
2020

21-
$reflectionClass = new ReflectionClass(QROptionsTrait::class);
21+
$reflectionClass = new ReflectionClass(QROptions::class);
2222

2323
foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $reflectionProperty){
2424
$docblock = $reflectionProperty->getDocComment();
@@ -93,6 +93,6 @@
9393

9494
file_put_contents(__DIR__.'/'.$file, implode("\n", $content));
9595

96-
printf('Built "%s" from "%s"', $file, QROptionsTrait::class);
96+
printf('Built "%s" from "%s"', $file, QROptions::class);
9797

9898
exit(0);

0 commit comments

Comments
 (0)