File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
packages/guides/src/DependencyInjection
tests/Integration/tests/configuration/config-project Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function getConfigTreeBuilder(): TreeBuilder
59
59
->arrayNode ('project ' )
60
60
->children ()
61
61
->scalarNode ('title ' )->end ()
62
- ->scalarNode ('version ' )
62
+ ->variableNode ('version ' )
63
63
->beforeNormalization ()
64
64
->always (
65
65
// We need to revert the phpize call in XmlUtils. Version is always a string!
@@ -73,7 +73,20 @@ static function ($value) {
73
73
)
74
74
->end ()
75
75
->end ()
76
- ->scalarNode ('release ' )->end ()
76
+ ->variableNode ('release ' )
77
+ ->beforeNormalization ()
78
+ ->always (
79
+ // We need to revert the phpize call in XmlUtils. Version is always a string!
80
+ static function ($ value ) {
81
+ if (!is_int ($ value ) && !is_string ($ value )) {
82
+ return var_export ($ value , true );
83
+ }
84
+
85
+ return $ value ;
86
+ },
87
+ )
88
+ ->end ()
89
+ ->end ()
77
90
->scalarNode ('copyright ' )->end ()
78
91
->end ()
79
92
->end ()
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h1>Document Title</h1>
10
10
< dd > Title</ dd >
11
11
< dt > version:</ dt >
12
12
13
- < dd > 12.4</ dd >
13
+ < dd > 12.4.0 </ dd >
14
14
< dt > release:</ dt >
15
15
16
16
< dd > 12.4.9-dev</ dd >
Original file line number Diff line number Diff line change 5
5
>
6
6
<project
7
7
title =" Title"
8
- version =" 12.4"
8
+ version =" 12.4.0 "
9
9
release =" 12.4.9-dev"
10
10
copyright =" since 1998 phpDocumentor Team and Contributors"
11
11
/>
You can’t perform that action at this time.
0 commit comments