Daniel Wilkowski

Results 48 issues of Daniel Wilkowski

Kiedy wkleimy link do `youtube.com` prowadzący do filmu to pojawia się player i wszystko jest git. Ale jak wkleimy link do innej części serwisu, na ktorym nie ma filmu, np...

bug

Kiedy połączyłem posty w jeden, drugi post zaczął zanikać (nie wiem co to było, albo animacja CSS albo JS albo coś jeszcze innego). Kiedy post zanikał, chciałem zamknąć raport, więc...

bug

If you run this ```php $array = [ 'Key' => 'One', 10 => 'Two', 20 => 'Three' ]; //when $result = FluentArray::from($array)->limit(2)->toArray(); ``` The resulting array is `['Key' => 'One',...

Commit https://github.com/letsdrink/ouzo/commit/017bbe6754528784bfed76adff50c8b5210e2d9a probably broke multi-byte safety, because this test now fails (test not in ouzo, I just wrote it) ```php /** * @test */ public function shouldNotStartWithMalformedUnicode() { // given...

```php echo Json::encode('5/6'); ``` Result ```json "5\/6" ``` Why is `/` escaped? If you use `JSON_UNESCAPED_SLASHES` from https://www.php.net/manual/en/json.constants.php, it doesn't quote slash anymore. PS: From PHP documentation I found, that...

Routes ``` php Route::get('/integration/:name/:id', 'controller#byNameAndId'); ``` Controller ``` php public function byNameAndId($name, $id) { $this->integration = Integration::findByNameId($name, $id); } ``` instead of this ``` php public function byNameAndId() { $this->integration...

feature

This usage emits a warning and reveals underlying implementation: ```php Strings::sprintAssoc("This is %{what}! %{what}? This is %{+}!", [ '+' => 'madness', ]); ``` ``` preg_replace(): Compilation failed: nothing to repeat...

question

I've put Ozuo app on "hostinger" server, and application didn't start, but instead got this error: `No input file specified.` RewriteRule could not find `index.php`, i guess. Adding `RewriteBase /`...

If `Config::getValue()` is invoked before `Bootstrap#runApplication`, then all config is overridden, which is unwanted behavior for `getValue` to override config,. It will possibly result in "No route found for" exception.,...

bug

``` php putenv('environment=prod'); define('ROOT_PATH', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR); require 'vendor/autoload.php'; Files::loadIfExists(Path::join(ROOT_PATH, 'config', 'routes.php')); $app = new Application(); // ... $app->add(new RefreshTagsCommand()); // ... $app->run(); ``` Config::registerConfig in RefreshTagsCommand won't register config.