ComposerUpdate

This commit is contained in:
Anyon 2020-02-25 15:57:54 +08:00
parent 4c8157671a
commit 0beb179fdf
4 changed files with 13 additions and 13 deletions

View File

@ -177,17 +177,17 @@
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",
"version": "v3.4.36", "version": "v3.4.37",
"version_normalized": "3.4.36.0", "version_normalized": "3.4.37.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/options-resolver.git", "url": "https://github.com/symfony/options-resolver.git",
"reference": "b224d20be60e6f7b55cd66914379a13a0b28651a" "reference": "730ef56164ed6c9356c159e9f5ff2b84d753b9ed"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/b224d20be60e6f7b55cd66914379a13a0b28651a", "url": "https://api.github.com/repos/symfony/options-resolver/zipball/730ef56164ed6c9356c159e9f5ff2b84d753b9ed",
"reference": "b224d20be60e6f7b55cd66914379a13a0b28651a", "reference": "730ef56164ed6c9356c159e9f5ff2b84d753b9ed",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -199,7 +199,7 @@
"require": { "require": {
"php": "^5.5.9|>=7.0.8" "php": "^5.5.9|>=7.0.8"
}, },
"time": "2019-10-26T11:02:01+00:00", "time": "2020-01-01T11:03:25+00:00",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -502,12 +502,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "01e2bea38f9c5e7ba0f0f09e84f7305560c70b76" "reference": "33ed4743a5b93e47f8f8f76949166449319ae42b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/01e2bea38f9c5e7ba0f0f09e84f7305560c70b76", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/33ed4743a5b93e47f8f8f76949166449319ae42b",
"reference": "01e2bea38f9c5e7ba0f0f09e84f7305560c70b76", "reference": "33ed4743a5b93e47f8f8f76949166449319ae42b",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -527,7 +527,7 @@
"qiniu/php-sdk": "^7.2", "qiniu/php-sdk": "^7.2",
"topthink/framework": "5.1.*" "topthink/framework": "5.1.*"
}, },
"time": "2020-01-09T02:58:35+00:00", "time": "2020-02-25T07:54:31+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {

View File

@ -1,4 +1,4 @@
Copyright (c) 2004-2019 Fabien Potencier Copyright (c) 2004-2020 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -36,7 +36,7 @@ if (!function_exists('p')) {
function p($data, $force = false, $file = null) function p($data, $force = false, $file = null)
{ {
if (is_null($file)) $file = env('runtime_path') . date('Ymd') . '.txt'; if (is_null($file)) $file = env('runtime_path') . date('Ymd') . '.txt';
$str = (is_string($data) ? $data : (is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true)) . PHP_EOL; $str = (is_string($data) ? $data : ((is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true))) . PHP_EOL;
$force ? file_put_contents($file, $str) : file_put_contents($file, $str, FILE_APPEND); $force ? file_put_contents($file, $str) : file_put_contents($file, $str, FILE_APPEND);
} }
} }

View File

@ -40,7 +40,7 @@ class CaptchaService extends Service
* @param array $config * @param array $config
* @return static * @return static
*/ */
public function initialize($config = []): Service public function initialize($config = [])
{ {
// 动态配置属性 // 动态配置属性
foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v; foreach ($config as $k => $v) if (isset($this->$k)) $this->$k = $v;