CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Mar 28, 2024 12:39 pm

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
   

Topic review - Need PHP 8
Author Message
  Post subject:  Re: Need PHP 8  Reply with quote
Hi.

Do You mean Error Window?

Yes, it doesn't process PHP 8 syntax yet.
We are going to update it soon surely.

Thanks,
Codelobster Team.
Post Posted: Fri Jan 29, 2021 10:48 pm
  Post subject:  Re: Need PHP 8  Reply with quote
[code]
public function foo(Foo|Bar $input): int|float;

public function foo(Foo|null $foo): void;

public function bar(?Bar $bar): void;

$dateAsString = $booking->getStartDate()?->asDateTimeString();

class CustomerData
{
public function __construct(
public string $name,
public string $email,
public int $age,
) {}
}

$data = new CustomerData(
name: $input['name'],use App\Attributes\ExampleAttribute;

#[ExampleAttribute]
class Foo
{
#[ExampleAttribute]
public const FOO = 'foo';

#[ExampleAttribute]
public $x;

#[ExampleAttribute]
public function foo(#[ExampleAttribute] $bar) { }
}
email: $input['email'],
age: $input['age'],
);

$result = match($input) {
0 => "hello",
'1', '2', '3' => "world",
};

class Money
{
public function __construct(
public Currency $currency,
public int $amount,
) {}
}

class Foo
{
public function test(): static
{
return new static();
}
}

$triggerError = fn () => throw new MyError();

$foo = $bar['offset'] ?? throw new OffsetDoesNotExist('offset');

class Foo
{
private WeakMap $cache;

public function getSomethingWithCaching(object $obj): object
{
return $this->cache[$obj]
??= $this->computeSomethingExpensive($obj);
}
}

$foo = new Foo();

var_dump($foo::class);

try {
// Something goes wrong
} catch (MySpecialException) {
Log::error("Something went wrong");
}

DateTime::createFromInterface(DateTimeInterface $other);

DateTimeImmutable::createFromInterface(DateTimeInterface $other);


[/code]

AND SO ON.

IT IS ABOUT PHP 8 (eight), not 7.

YOU have to develop new internal parser for this version (PHP 8) that will support all php features 1:1, YOU have to update CodeInsight, docs, php standard definitions, debugger, refresh all the libraries depend on.
Post Posted: Mon Jan 18, 2021 9:49 am
  Post subject:  Re: Need PHP 8  Reply with quote
Hi.

What functions are not shown for You?
Codelobster uses last version on PHP online help.

Thanks,
Codelobster Team.
Post Posted: Mon Jan 18, 2021 7:00 am
  Post subject:  Need PHP 8  Reply with quote
I need tu use PHP 8 in a new project.
Can this be done in CodeLobsterIDE? It is very important to me (and urgent).
Thanks a lot !
Post Posted: Sat Jan 16, 2021 2:40 pm

All times are UTC


Jump to:  
cron
Powered by phpBB © 2016 phpBB Group