composer svn

Posted by 夏泽民

mac上用composer 全局安装工具时报错 [Symfony\Component\Process\Exception\RuntimeException] The process has been signaled with signal “5”.

方法一:重新安装svn



composer autoload

Posted by 夏泽民

$composer global require xxx Changed current directory to /Users/didi/.composer You are running Composer with SSL/TLS protection disabled. ./composer.json is not readable.



assert_instances_of instances_of

Posted by 夏泽民

$this->assertInstanceOf(User::class, $user); $this->assertInstanceOf(get_class($expectedObject), $user);



govaluate

Posted by 夏泽民

https://github.com/Knetic/govaluate govaluate提供了任意类似C语言的算术/字符串表达式的求值。



foreach

Posted by 夏泽民

php定义空对象 有时候我们直接对不存在的数组直接定义其下标的值,不会报错,但是我们定义不存在的对象的时候,就会报错,这个时候我们定义一个空对象即可.有以下三种方法:



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required