mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-02 17:17:48 +01:00
12 lines
643 B
Bash
Executable File
12 lines
643 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
rm -rf vendor/danog/madelineproto/docs
|
|
|
|
#sed -re 's/\?(\w*) (\$\w+)/\2 = NULL/g;s/= null = null/=null/ig;s/: self//g' -i vendor/league/uri-interfaces/src/Contracts/UriInterface.php
|
|
#php $(dirname $0)/prepare-5.php
|
|
|
|
#sed -i 's/handleConnectionWindowIncrement[(]\$windowSize[)]/handleConnectionWindowIncrement(int $windowSize)/g' vendor/amphp/http-client/src/Connection/Internal/Http2ConnectionProcessor.php
|
|
for f in $(grep -lr Closure::fromCallable vendor/);do
|
|
grep -qi CallableMaker $f || sed -ri 's/^\{/{ use \\MyCallableMaker;/g;s/\\Closure::fromCallable[(]\[(.+), (.+)\][)]/\1->callableFromInstanceMethod(\2)/g' $f
|
|
done
|