Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
hhit
config-generator
Commits
756dcbdf
Commit
756dcbdf
authored
Mar 22, 2022
by
Hendrik Heneke
Browse files
Convert input to correct type
parent
6bb7c3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Command/SetSecretsCommand.php
src/Command/SetSecretsCommand.php
+1
-1
No files found.
src/Command/SetSecretsCommand.php
View file @
756dcbdf
...
...
@@ -47,7 +47,7 @@ class SetSecretsCommand extends AbstractCommand
}
if
(
0
<
$random
=
$input
->
getOption
(
'random'
)
??
16
)
{
$value
=
strtr
(
substr
(
base64_encode
(
random_bytes
(
$random
)),
0
,
$random
),
'+/'
,
'-_'
);
$value
=
strtr
(
substr
(
base64_encode
(
random_bytes
(
intval
(
$random
))
)
,
0
,
intval
(
$random
)
)
,
'+/'
,
'-_'
);
}
elseif
(
!
$file
=
$input
->
getArgument
(
'file'
))
{
$value
=
$io
->
askHidden
(
'Please type the secret value'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment